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§

source

fn alloc(&self) -> &DescriptorPoolAlloc

Returns the allocation of the descriptor set.

source

fn pool(&self) -> &DescriptorPool

Returns the descriptor pool that the descriptor set was allocated from.

source

fn resources(&self) -> &DescriptorSetResources

Returns the resources bound to this descriptor set.

Provided Methods§

source

fn layout(&self) -> &Arc<DescriptorSetLayout>

Returns the layout of this descriptor set.

source

fn variable_descriptor_count(&self) -> u32

Returns the variable descriptor count that this descriptor set was allocated with.

source

fn offsets( self: Arc<Self>, dynamic_offsets: impl IntoIterator<Item = u32> ) -> DescriptorSetWithOffsetswhere Self: Sized + 'static,

Creates a DescriptorSetWithOffsets with the given dynamic offsets.

Trait Implementations§

source§

impl Hash for dyn DescriptorSet

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
source§

impl PartialEq for dyn DescriptorSet

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for dyn DescriptorSet

Implementors§