Skip to content

Commit

Permalink
Return descriptor type during shader reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBob01 committed Oct 30, 2024
1 parent 241e84f commit 6dbfe62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Graphics/Vulkan/ShaderRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ namespace Dynamo::Graphics::Vulkan {
// Add descriptor metadata to reflection
DescriptorBinding descriptor_binding;
descriptor_binding.name = refl_binding.name;
descriptor_binding.type = layout_binding.descriptorType;
descriptor_binding.shared = shared_it != shared_uniforms.end();
descriptor_binding.binding = refl_binding.binding;
descriptor_binding.descriptor_count = layout_binding.descriptorCount;
Expand Down
1 change: 1 addition & 0 deletions src/Graphics/Vulkan/ShaderRegistry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ namespace Dynamo::Graphics::Vulkan {
*/
struct DescriptorBinding {
std::string name;
VkDescriptorType type;
unsigned binding;
unsigned descriptor_count;
unsigned size;
Expand Down

0 comments on commit 6dbfe62

Please sign in to comment.