vulkan: code styling

This commit is contained in:
niki
2023-02-12 14:18:26 +01:00
parent 6183f67598
commit dc6e080d18
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2182,7 +2182,7 @@ VkRenderPass Graphics::createRenderPass(RenderPassConfiguration &configuration)
} }
VkRenderPass Graphics::getRenderPass(RenderPassConfiguration& configuration) VkRenderPass Graphics::getRenderPass(RenderPassConfiguration &configuration)
{ {
VkRenderPass renderPass; VkRenderPass renderPass;
auto it = renderPasses.find(configuration); auto it = renderPasses.find(configuration);
+2 -2
View File
@@ -52,7 +52,7 @@ struct ColorAttachment
VkAttachmentLoadOp loadOp = VK_ATTACHMENT_LOAD_OP_LOAD; VkAttachmentLoadOp loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT; VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
bool operator==(const ColorAttachment&attachment) const bool operator==(const ColorAttachment &attachment) const
{ {
return format == attachment.format && return format == attachment.format &&
loadOp == attachment.loadOp && loadOp == attachment.loadOp &&
@@ -351,7 +351,7 @@ private:
VkFramebuffer getFramebuffer(FramebufferConfiguration &configuration); VkFramebuffer getFramebuffer(FramebufferConfiguration &configuration);
void createDefaultShaders(); void createDefaultShaders();
VkRenderPass createRenderPass(RenderPassConfiguration &configuration); VkRenderPass createRenderPass(RenderPassConfiguration &configuration);
VkRenderPass getRenderPass(RenderPassConfiguration& configuration); VkRenderPass getRenderPass(RenderPassConfiguration &configuration);
VkPipeline createGraphicsPipeline(GraphicsPipelineConfiguration &configuration); VkPipeline createGraphicsPipeline(GraphicsPipelineConfiguration &configuration);
void createColorResources(); void createColorResources();
VkFormat findSupportedFormat(const std::vector<VkFormat> &candidates, VkImageTiling tiling, VkFormatFeatureFlags features); VkFormat findSupportedFormat(const std::vector<VkFormat> &candidates, VkImageTiling tiling, VkFormatFeatureFlags features);