Minor code cleanup

This commit is contained in:
Sascha Willems 2023-12-24 15:02:35 +01:00
parent b8959f76db
commit 3187478c99

View file

@ -42,13 +42,13 @@ public:
struct Pipelines { struct Pipelines {
VkPipeline toonshading; VkPipeline toonshading;
VkPipeline color; VkPipeline color;
VkPipeline wireframe = VK_NULL_HANDLE; VkPipeline wireframe;
VkPipeline postprocess; VkPipeline postprocess;
} pipelines; } pipelines{};
VkPipelineLayout pipelineLayout; VkPipelineLayout pipelineLayout{ VK_NULL_HANDLE };
VkDescriptorSetLayout descriptorSetLayout; VkDescriptorSetLayout descriptorSetLayout{ VK_NULL_HANDLE };
VkDescriptorSet descriptorSet; VkDescriptorSet descriptorSet{ VK_NULL_HANDLE };
// Framebuffer for offscreen rendering // Framebuffer for offscreen rendering
struct FrameBufferAttachment { struct FrameBufferAttachment {
@ -63,7 +63,7 @@ public:
VkRenderPass renderPass; VkRenderPass renderPass;
VkSampler sampler; VkSampler sampler;
VkDescriptorImageInfo descriptor; VkDescriptorImageInfo descriptor;
} offscreenPass; } offscreenPass{};
// Function pointers for the VK_EXT_debug_utils_extension // Function pointers for the VK_EXT_debug_utils_extension