Trait vulkano::descriptor_set::DescriptorSet
source · pub unsafe trait DescriptorSet: VulkanObject<Handle = DescriptorSet> + DeviceOwned + Send + Sync {
// Required methods
fn alloc(&self) -> &DescriptorPoolAlloc;
fn pool(&self) -> &DescriptorPool;
fn resources(&self) -> &DescriptorSetResources;
// Provided methods
fn layout(&self) -> &Arc<DescriptorSetLayout> { ... }
fn variable_descriptor_count(&self) -> u32 { ... }
fn offsets(
self: Arc<Self>,
dynamic_offsets: impl IntoIterator<Item = u32>
) -> DescriptorSetWithOffsets
where Self: Sized + 'static { ... }
}
Expand description
Trait for objects that contain a collection of resources that will be accessible by shaders.
Objects of this type can be passed when submitting a draw command.
Required Methods§
sourcefn alloc(&self) -> &DescriptorPoolAlloc
fn alloc(&self) -> &DescriptorPoolAlloc
Returns the allocation of the descriptor set.
sourcefn pool(&self) -> &DescriptorPool
fn pool(&self) -> &DescriptorPool
Returns the descriptor pool that the descriptor set was allocated from.
sourcefn resources(&self) -> &DescriptorSetResources
fn resources(&self) -> &DescriptorSetResources
Returns the resources bound to this descriptor set.
Provided Methods§
sourcefn layout(&self) -> &Arc<DescriptorSetLayout>
fn layout(&self) -> &Arc<DescriptorSetLayout>
Returns the layout of this descriptor set.
sourcefn variable_descriptor_count(&self) -> u32
fn variable_descriptor_count(&self) -> u32
Returns the variable descriptor count that this descriptor set was allocated with.
sourcefn offsets(
self: Arc<Self>,
dynamic_offsets: impl IntoIterator<Item = u32>
) -> DescriptorSetWithOffsetswhere
Self: Sized + 'static,
fn offsets( self: Arc<Self>, dynamic_offsets: impl IntoIterator<Item = u32> ) -> DescriptorSetWithOffsetswhere Self: Sized + 'static,
Creates a DescriptorSetWithOffsets
with the given dynamic offsets.