Trait sierra::PipelinePushConstants
source · pub trait PipelinePushConstants<P: ?Sized> {
type Repr: Pod;
const STAGES: ShaderStageFlags;
const OFFSET: u32;
fn to_repr(&self) -> Self::Repr;
}
Expand description
Extension trait for push constants, specifying stages, offset and size in the typed pipeline.
This trait is intended to be implemented by proc macro #[derive(Pipeline)]
for types marked as #[push]
.
Required Associated Types§
Required Associated Constants§
sourceconst STAGES: ShaderStageFlags
const STAGES: ShaderStageFlags
Stage flags for which push constants are enabled.