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§
sourcetype Layout
type Layout
Layout type for the input.
Proc macro #[derive(Descriptors)]
generates this type and all necessary code.
sourcetype Instance: DescriptorsInstance<Self>
type Instance: DescriptorsInstance<Self>
Instance type for the input.
Proc macro #[derive(Descriptors)]
generates this type and all necessary code.