diff options
Diffstat (limited to 'engine/xe_descriptors.hpp')
-rw-r--r-- | engine/xe_descriptors.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/xe_descriptors.hpp b/engine/xe_descriptors.hpp index ea635c5..7f5c159 100644 --- a/engine/xe_descriptors.hpp +++ b/engine/xe_descriptors.hpp @@ -19,7 +19,8 @@ class DescriptorSetLayout { uint32_t binding, VkDescriptorType descriptorType, VkShaderStageFlags stageFlags, - VkSampler *sampler); + VkSampler *sampler, + uint32_t count); std::unique_ptr<DescriptorSetLayout> build() const; private: @@ -90,6 +91,7 @@ class DescriptorWriter { DescriptorWriter &writeBuffer(uint32_t binding, VkDescriptorBufferInfo *bufferInfo); DescriptorWriter &writeImage(uint32_t binding, VkDescriptorImageInfo *imageInfo); + DescriptorWriter &writeImageArray(uint32_t binding, std::vector<VkDescriptorImageInfo> *imageInfos); bool build(VkDescriptorSet &set); void overwrite(VkDescriptorSet &set); |