Trait sierra::DescriptorsInput[][src]

pub trait DescriptorsInput {
    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 #[descriptors].

Associated Types

Layout type for the input.

Proc macro #[descriptors] generates this type and all necessary code.

Instance type for the input.

Proc macro #[descriptors] generates this type and all necessary code.

Required methods

Shortcut for instantiating layout for the input type.

Implementors