pub struct PushConstantRange {
pub offset: u32,
pub size: u32,
pub stage: ShaderStage,
}Expand description
A push constant range that can be set per draw/dispatch call.
Fields§
§offset: u32Byte offset into the push constant block.
size: u32Size in bytes.
stage: ShaderStageShader stage.
Implementations§
Source§impl PushConstantRange
impl PushConstantRange
Sourcepub fn new(offset: u32, size: u32, stage: ShaderStage) -> Self
pub fn new(offset: u32, size: u32, stage: ShaderStage) -> Self
Create a new push constant range.
Sourcepub fn fits_standard_limit(&self) -> bool
pub fn fits_standard_limit(&self) -> bool
Check if this range fits within the standard 128-byte GPU limit.
Trait Implementations§
Source§impl Clone for PushConstantRange
impl Clone for PushConstantRange
Source§fn clone(&self) -> PushConstantRange
fn clone(&self) -> PushConstantRange
Returns a duplicate 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
impl Copy for PushConstantRange
Auto Trait Implementations§
impl Freeze for PushConstantRange
impl RefUnwindSafe for PushConstantRange
impl Send for PushConstantRange
impl Sync for PushConstantRange
impl Unpin for PushConstantRange
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more