Vookoo
|
Convenience class for updating descriptor sets (uniforms) More...
#include <vku.hpp>
Public Member Functions | |
DescriptorSetUpdater (int maxBuffers=10, int maxImages=10, int maxBufferViews=0) | |
void | beginDescriptorSet (vk::DescriptorSet dstSet) |
Call this to begin a new descriptor set. | |
void | beginImages (uint32_t dstBinding, uint32_t dstArrayElement, vk::DescriptorType descriptorType) |
Call this to begin a new set of images. | |
void | image (vk::Sampler sampler, vk::ImageView imageView, vk::ImageLayout imageLayout) |
Call this to add a combined image sampler. | |
void | beginBuffers (uint32_t dstBinding, uint32_t dstArrayElement, vk::DescriptorType descriptorType) |
Call this to start defining buffers. | |
void | buffer (vk::Buffer buffer, vk::DeviceSize offset, vk::DeviceSize range) |
Call this to add a new buffer. | |
void | beginBufferViews (uint32_t dstBinding, uint32_t dstArrayElement, vk::DescriptorType descriptorType) |
Call this to start adding buffer views. (for example, writable images). | |
void | bufferView (vk::BufferView view) |
Call this to add a buffer view. (Texel images) | |
void | copy (vk::DescriptorSet srcSet, uint32_t srcBinding, uint32_t srcArrayElement, vk::DescriptorSet dstSet, uint32_t dstBinding, uint32_t dstArrayElement, uint32_t descriptorCount) |
Copy an existing descriptor. | |
void | update (const vk::Device &device) const |
Call this to update the descriptor sets with their pointers (but not data). | |
bool | ok () const |
Returns true if the updater is error free. | |
Convenience class for updating descriptor sets (uniforms)