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::none()
, 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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PushConstantRange) -> bool
fn ne(&self, other: &PushConstantRange) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more