pub trait DescriptorBinding<K: DescriptorKind> {
    const FLAGS: DescriptorBindingFlags;

    fn is_compatible(&self, descriptor: &K::Descriptor) -> bool;
    fn get_descriptor(
        &self,
        device: &Device
    ) -> Result<K::Descriptor, OutOfMemory>; fn update_descriptor(
        &mut self,
        device: &Device,
        encoder: &mut Encoder<'_>,
        descriptor: &K::Descriptor
    ) -> Result<(), OutOfMemory> { ... } }
Expand description

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

Required Associated Constants§

Flags necessary for this binding type.

Required Methods§

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

Returns compatible descriptor to be bound to the set.

Provided Methods§

Updates content of descriptor.

Implementations on Foreign Types§

Implementors§