pub trait DescriptorBindingArray<K> {
    type DescriptorArray;

    const COUNT: u32;
    const FLAGS: DescriptorBindingFlags;

    fn is_compatible(&self, descriptors: &Self::DescriptorArray) -> bool;
    fn get_descriptors(
        &self,
        device: &Device
    ) -> Result<Self::DescriptorArray, OutOfMemory>; fn update_descriptors(
        &mut self,
        device: &Device,
        encoder: &mut Encoder<'_>,
        descriptors: &Self::DescriptorArray
    ) -> Result<(), OutOfMemory> { ... } }
Expand description

Trait for all types that can be used as a descriptor array.

Required Associated Types§

Descriptors value.

Required Associated Constants§

Number of descriptors in the binding.

Flags necessary for this binding type.

Required Methods§

Checks descriptors bound to a set. Returns true if bound descriptors are compatible with input. Returns false if new descriptors should be bound.

Returns Descriptors equivalent to self.

Provided Methods§

Updates content of descriptors.

Implementations on Foreign Types§

Implementors§