Skip to main content

Module descriptor_set

Module descriptor_set 

Source
Expand description

Explicit descriptor set allocation and update support.

DescriptorSet::alloc_and_update creates an immutable descriptor set from a reflected pipeline layout. The result owns its Vulkan descriptor pool and keeps every resource referenced by a write or copy alive. Clone it cheaply to reuse the same allocation.

Descriptor contents do not declare graph synchronization. Bind each referenced resource to the graph and declare its AccessType separately, then bind the set with PipelineCommand::bind_descriptor_set.

Input attachments, texel buffers, and dynamic buffer descriptors are currently unsupported by this immutable API and prevent allocating a first-class set for their set index.

Structsยง

DescriptorSet
An immutable, explicitly populated Vulkan descriptor set.
DescriptorSetBinding
Identifies one binding and array element within a descriptor set.
DescriptorSetInfo
Information selecting the pipeline layout used to allocate a DescriptorSet.
DescriptorSetInfoBuilder
Builder for DescriptorSetInfo.
DescriptorSetUpdateInfo
One write or copy performed while allocating a DescriptorSet.