mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Remove useless casts to parent class
This commit is contained in:
@@ -933,7 +933,6 @@ struct ClearColorValue
|
||||
};
|
||||
|
||||
operator const VkClearColorValue *() const { return (VkClearColorValue *)this; }
|
||||
operator const VkClearColorValue &() const { return (VkClearColorValue &)*this; }
|
||||
};
|
||||
|
||||
struct ClearValue
|
||||
@@ -996,7 +995,6 @@ struct PipelineShaderStageCreateInfo : public VkPipelineShaderStageCreateInfo
|
||||
}
|
||||
|
||||
operator const VkPipelineShaderStageCreateInfo *() const { return this; }
|
||||
operator const VkPipelineShaderStageCreateInfo &() const { return *this; }
|
||||
};
|
||||
|
||||
struct ComputePipelineCreateInfo : public VkComputePipelineCreateInfo
|
||||
@@ -1016,7 +1014,6 @@ struct ComputePipelineCreateInfo : public VkComputePipelineCreateInfo
|
||||
}
|
||||
|
||||
operator const VkComputePipelineCreateInfo *() const { return this; }
|
||||
operator const VkComputePipelineCreateInfo &() const { return *this; }
|
||||
};
|
||||
|
||||
// we inherit privately and selectively make public the things we want to give direct access to
|
||||
@@ -1134,11 +1131,6 @@ struct GraphicsPipelineCreateInfo : private VkGraphicsPipelineCreateInfo
|
||||
bake();
|
||||
return (const VkGraphicsPipelineCreateInfo *)this;
|
||||
}
|
||||
operator const VkGraphicsPipelineCreateInfo &()
|
||||
{
|
||||
bake();
|
||||
return (const VkGraphicsPipelineCreateInfo &)*this;
|
||||
}
|
||||
|
||||
private:
|
||||
void bake();
|
||||
@@ -1215,11 +1207,6 @@ struct RenderPassCreator : private VkRenderPassCreateInfo
|
||||
bake();
|
||||
return (const VkRenderPassCreateInfo *)this;
|
||||
}
|
||||
operator const VkRenderPassCreateInfo &()
|
||||
{
|
||||
bake();
|
||||
return (const VkRenderPassCreateInfo &)*this;
|
||||
}
|
||||
|
||||
private:
|
||||
void bake()
|
||||
|
||||
Reference in New Issue
Block a user