pub enum TextureDim {
Tex1d,
Tex2d,
Tex3d,
}Expand description
Texture dimension for tex instructions.
PTX texture fetch instructions are suffixed with the dimensionality
(.1d, .2d, .3d) to specify the coordinate space.
Variants§
Implementations§
Source§impl TextureDim
impl TextureDim
Sourcepub const fn as_ptx_str(self) -> &'static str
pub const fn as_ptx_str(self) -> &'static str
Returns the PTX dimension suffix (e.g., ".1d", ".2d", ".3d").
Trait Implementations§
Source§impl Clone for TextureDim
impl Clone for TextureDim
Source§fn clone(&self) -> TextureDim
fn clone(&self) -> TextureDim
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 TextureDim
impl Debug for TextureDim
Source§impl Hash for TextureDim
impl Hash for TextureDim
Source§impl PartialEq for TextureDim
impl PartialEq for TextureDim
impl Copy for TextureDim
impl Eq for TextureDim
impl StructuralPartialEq for TextureDim
Auto Trait Implementations§
impl Freeze for TextureDim
impl RefUnwindSafe for TextureDim
impl Send for TextureDim
impl Sync for TextureDim
impl Unpin for TextureDim
impl UnsafeUnpin for TextureDim
impl UnwindSafe for TextureDim
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