logo
pub unsafe trait DescriptorSet: DeviceOwned + Send + Sync {
    fn inner(&self) -> &UnsafeDescriptorSet;
fn layout(&self) -> &Arc<DescriptorSetLayout>;
fn resources(&self) -> &DescriptorSetResources; fn offsets<I>(
        self: Arc<Self>,
        dynamic_offsets: I
    ) -> DescriptorSetWithOffsets
    where
        Self: Sized + 'static,
        I: IntoIterator<Item = u32>
, { ... } }
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

Returns the inner UnsafeDescriptorSet.

Returns the layout of this descriptor set.

Returns the resources bound to this descriptor set.

Provided methods

Creates a DescriptorSetWithOffsets with the given dynamic offsets.

Trait Implementations

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors