Skip to content

Commit

Permalink
VK objects initializations added
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz-Kowalewski-Mobica committed May 22, 2024
1 parent 7acbd64 commit 22b56ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@

This sample demonstrates one of the functionalities of VK_EXT_extended_dynamic_state3 related to rasterization samples.
The extension can be used to dynamically change sampling without need to swap pipelines.
image:image/image.png[]
image:./image/image.png[]

== Enabling the extension

To be able to use this extension in Vulkan API:
`VK_EXT_extended_dynamic_state3` depends on `VK_KHR_get_physical_device_properties2`, which is promoted to Vulkan 1.1. That is, to use this extension, `VK_EXT_extended_dynamic_state3` and either `VK_KHR_get_physical_device_properties2` or Vulkan 1.1 are required.
Additionally this sample uses `VK_KHR_dynamic_rendering" which required Vulkan 1.2.

== Using the extension

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ class DynamicMultisampleRasterization : public ApiVulkanSample
} uniform_data;
std::unique_ptr<vkb::core::Buffer> uniform_buffer;

VkPipeline pipeline;
VkPipeline pipeline_inversed_rasterizer;
VkPipelineLayout pipeline_layout;
VkDescriptorSet descriptor_set;
VkDescriptorSetLayout descriptor_set_layout;
VkPipeline pipeline{VK_NULL_HANDLE};
VkPipeline pipeline_inversed_rasterizer{VK_NULL_HANDLE};
VkPipelineLayout pipeline_layout{VK_NULL_HANDLE};
VkDescriptorSet descriptor_set{VK_NULL_HANDLE};
VkDescriptorSetLayout descriptor_set_layout{VK_NULL_HANDLE};

// GUI
VkPipeline pipeline_gui;
VkPipelineLayout pipeline_layout_gui;
VkDescriptorSet descriptor_set_gui;
VkDescriptorSetLayout descriptor_set_layout_gui;
VkDescriptorPool descriptor_pool_gui;
VkPipeline pipeline_gui{VK_NULL_HANDLE};
VkPipelineLayout pipeline_layout_gui{VK_NULL_HANDLE};
VkDescriptorSet descriptor_set_gui{VK_NULL_HANDLE};
VkDescriptorSetLayout descriptor_set_layout_gui{VK_NULL_HANDLE};
VkDescriptorPool descriptor_pool_gui{VK_NULL_HANDLE};

ImageData color_attachment;

Expand Down

0 comments on commit 22b56ac

Please sign in to comment.