15 #include <vsg/state/BufferInfo.h>
16 #include <vsg/state/Descriptor.h>
28 explicit DescriptorBuffer(
ref_ptr<Data> data, uint32_t dstBinding = 0, uint32_t dstArrayElement = 0, VkDescriptorType descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
29 explicit DescriptorBuffer(
const DataList& dataList, uint32_t dstBinding = 0, uint32_t dstArrayElement = 0, VkDescriptorType descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
30 explicit DescriptorBuffer(
const BufferInfoList& in_bufferInfoList, uint32_t dstBinding = 0, uint32_t dstArrayElement = 0, VkDescriptorType descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER);
37 void read(
Input& input)
override;
38 void write(
Output& output)
const override;
40 void compile(
Context& context)
override;
42 void assignTo(
Context& context, VkWriteDescriptorSet& wds)
const override;
44 uint32_t getNumDescriptors()
const override;
46 void copyDataListToBuffers();
Definition: DescriptorBuffer.h:24
BufferInfoList bufferInfoList
VkWriteDescriptorSet.pBufferInfo settings.
Definition: DescriptorBuffer.h:33
int compare(const Object &rhs_object) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...