pub struct PushConstantRange {
pub stages: ShaderStages,
pub offset: u32,
pub size: u32,
}
Expand description
Description of a range of the push constants of a pipeline layout.
Fields
stages: ShaderStages
The stages which can access this range. A stage can access at most one push constant range.
The default value is ShaderStages::empty()
, which must be overridden.
offset: u32
Offset in bytes from the start of the push constants to this range.
The value must be a multiple of 4.
The default value is 0
.
size: u32
Size in bytes of the range.
The value must be a multiple of 4, and not 0.
The default value is 0
, which must be overridden.
Trait Implementations
sourceimpl Clone for PushConstantRange
impl Clone for PushConstantRange
sourcefn clone(&self) -> PushConstantRange
fn clone(&self) -> PushConstantRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PushConstantRange
impl Debug for PushConstantRange
sourceimpl Default for PushConstantRange
impl Default for PushConstantRange
sourceimpl PartialEq<PushConstantRange> for PushConstantRange
impl PartialEq<PushConstantRange> for PushConstantRange
sourcefn eq(&self, other: &PushConstantRange) -> bool
fn eq(&self, other: &PushConstantRange) -> bool
impl Copy for PushConstantRange
impl Eq for PushConstantRange
impl StructuralEq for PushConstantRange
impl StructuralPartialEq for PushConstantRange
Auto Trait Implementations
impl RefUnwindSafe for PushConstantRange
impl Send for PushConstantRange
impl Sync for PushConstantRange
impl Unpin for PushConstantRange
impl UnwindSafe for PushConstantRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more