Trait sierra::Descriptors

source ·
pub trait Descriptors {
    type Layout;
    type Instance: DescriptorsInstance<Self>;

    fn layout(device: &Device) -> Result<Self::Layout, OutOfMemory>;
}
Expand description

Input structures for descriptors implement this trait.

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

Required Associated Types§

Layout type for the input.

Proc macro #[derive(Descriptors)] generates this type and all necessary code.

Instance type for the input.

Proc macro #[derive(Descriptors)] generates this type and all necessary code.

Required Methods§

Shortcut for instantiating layout for the input type.

Implementors§