10#include <unordered_map>
31 Builder &
addBinding(uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, uint32_t count = 1);
32 std::unique_ptr<DescriptorSetLayout>
build()
const {
return std::make_unique<DescriptorSetLayout>(
m_device,
m_bindings); }
37 std::unordered_map<uint32_t, VkDescriptorSetLayoutBinding>
m_bindings;
55 std::unordered_map<uint32_t, VkDescriptorSetLayoutBinding>
m_bindings;
This file contains the Device class.
std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > m_bindings
Builder & addBinding(uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, uint32_t count=1)
std::unique_ptr< DescriptorSetLayout > build() const
Class for descriptor set layout.
DescriptorSetLayout(const DescriptorSetLayout &)=delete
DescriptorSetLayout(DescriptorSetLayout &&)=delete
DescriptorSetLayout & operator=(DescriptorSetLayout &&)=delete
std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > m_bindings
DescriptorSetLayout & operator=(const DescriptorSetLayout &)=delete
DescriptorSetLayout(Device &device, const std::unordered_map< uint32_t, VkDescriptorSetLayoutBinding > &bindings)
VkDescriptorSetLayout m_descriptorSetLayout
VkDescriptorSetLayout getDescriptorSetLayout() const
Class for descriptor writer.