Struct vulkano::pipeline::layout::PushConstantRange
source · 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§
source§impl Clone for PushConstantRange
impl Clone for PushConstantRange
source§fn clone(&self) -> PushConstantRange
fn clone(&self) -> PushConstantRange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PushConstantRange
impl Debug for PushConstantRange
source§impl Default for PushConstantRange
impl Default for PushConstantRange
source§impl PartialEq for PushConstantRange
impl PartialEq for PushConstantRange
source§fn eq(&self, other: &PushConstantRange) -> bool
fn eq(&self, other: &PushConstantRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more