pub trait DescriptorsInstance<I: ?Sized> {
    type Updated: UpdatedDescriptors;

    fn update(
        &mut self,
        input: &I,
        device: &Device,
        encoder: &mut Encoder<'_>
    ) -> Result<&Self::Updated, DescriptorsAllocationError>; fn raw_layout(&self) -> &DescriptorSetLayout; }
Expand description

Trait for descriptors instance.

This trait is intended to be implemented by proc macro #[derive(Descriptors)] for generated types.

Required Associated Types§

Required Methods§

Performs necessary updates to the descriptors according to the input. Returns update descriptors instance that can be bound to the encoder with correct pipline.

Implementors§