pub trait PipelinePushConstants<P: ?Sized> {
type Repr: Pod;
const STAGES: ShaderStageFlags;
const OFFSET: u32;
// Required method
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 Constants§
Sourceconst STAGES: ShaderStageFlags
const STAGES: ShaderStageFlags
Stage flags for which push constants are enabled.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.