#[repr(transparent)]pub struct StepFunction(pub UInteger);Expand description
Step function for buffer layouts.
C++ equivalent: MTL::StepFunction
Tuple Fields§
§0: UIntegerImplementations§
Source§impl StepFunction
impl StepFunction
pub const CONSTANT: Self
pub const PER_VERTEX: Self
pub const PER_INSTANCE: Self
pub const PER_PATCH: Self
pub const PER_PATCH_CONTROL_POINT: Self
pub const THREAD_POSITION_IN_GRID_X: Self
pub const THREAD_POSITION_IN_GRID_Y: Self
pub const THREAD_POSITION_IN_GRID_X_INDEXED: Self
pub const THREAD_POSITION_IN_GRID_Y_INDEXED: Self
Trait Implementations§
Source§impl Clone for StepFunction
impl Clone for StepFunction
Source§fn clone(&self) -> StepFunction
fn clone(&self) -> StepFunction
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 StepFunction
impl Debug for StepFunction
Source§impl Default for StepFunction
impl Default for StepFunction
Source§fn default() -> StepFunction
fn default() -> StepFunction
Returns the “default value” for a type. Read more
Source§impl Hash for StepFunction
impl Hash for StepFunction
Source§impl PartialEq for StepFunction
impl PartialEq for StepFunction
impl Copy for StepFunction
impl Eq for StepFunction
impl StructuralPartialEq for StepFunction
Auto Trait Implementations§
impl Freeze for StepFunction
impl RefUnwindSafe for StepFunction
impl Send for StepFunction
impl Sync for StepFunction
impl Unpin for StepFunction
impl UnwindSafe for StepFunction
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