Struct wgpu_types::PushConstantRange [−][src]
pub struct PushConstantRange {
pub stages: ShaderStage,
pub range: Range<u32>,
}Expand description
A range of push constant memory to pass to a shader stage.
Fields
stages: ShaderStageStage push constant range is visible from. Each stage can only be served by at most one range. One range can serve multiple stages however.
range: Range<u32>Range in push constant memory to use for the stage. Must be less than Limits::max_push_constant_size.
Start and end must be aligned to the 4s.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PushConstantRangeimpl Send for PushConstantRangeimpl Sync for PushConstantRangeimpl Unpin for PushConstantRangeimpl UnwindSafe for PushConstantRangeBlanket Implementations
Mutably borrows from an owned value. Read more