10 .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER,
11 .descriptorCount = 1u,
12 .stageFlags = stageFlags,
13 .pImmutableSamplers =
nullptr,
22 .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
24 .stageFlags = stageFlags,
25 .pImmutableSamplers =
nullptr,
34 .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
36 .stageFlags = stageFlags,
37 .pImmutableSamplers =
nullptr,
39 flags.push_back(VK_DESCRIPTOR_BINDING_VARIABLE_DESCRIPTOR_COUNT_BIT | VK_DESCRIPTOR_BINDING_PARTIALLY_BOUND_BIT);
constexpr uint32_t MAX_TEXTURE_COUNT
std::vector< VkDescriptorBindingFlags > flags
LayoutBindingsBuilder & addTextureBuffer(uint32_t binding, VkShaderStageFlags stageFlags)
Adds a texture buffer for binding.
LayoutBindingsBuilder()=default
LayoutBindingsBuilder & addUniformBuffer(uint32_t binding, VkShaderStageFlags stageFlags)
Adds a uniform buffer for binding.
void build()
Decorative. Finishes the nodiscard chain of added buffers.
std::vector< VkDescriptorSetLayoutBinding > bindings
LayoutBindingsBuilder & addStorageBuffer(uint32_t binding, VkShaderStageFlags stageFlags)
Adds a storage buffer to for binding.
Log category system implementation.