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§

Shader repr type matching push constants layout.

Required Associated Constants§

Stage flags for which push constants are enabled.

Offset of the instance of push constants.

Required Methods§

Function to convert push constants into correct repr.

Implementors§