Skip to main content

CUarray_format

Enum CUarray_format 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum CUarray_format {
Show 35 variants UnsignedInt8 = 1, UnsignedInt16 = 2, UnsignedInt32 = 3, SignedInt8 = 8, SignedInt16 = 9, SignedInt32 = 10, Half = 16, Float = 32, Nv12 = 176, UnormInt8X1 = 192, UnormInt8X2 = 193, UnormInt8X4 = 194, UnormInt16X1 = 195, UnormInt16X2 = 196, UnormInt16X4 = 197, SnormInt8X1 = 198, SnormInt8X2 = 199, SnormInt8X4 = 200, SnormInt16X1 = 201, SnormInt16X2 = 202, SnormInt16X4 = 203, Bc1Unorm = 145, Bc1UnormSrgb = 146, Bc2Unorm = 147, Bc2UnormSrgb = 148, Bc3Unorm = 149, Bc3UnormSrgb = 150, Bc4Unorm = 151, Bc4Snorm = 152, Bc5Unorm = 153, Bc5Snorm = 154, Bc6hUf16 = 155, Bc6hSf16 = 156, Bc7Unorm = 157, Bc7UnormSrgb = 158,
}
Expand description

Element format for CUDA arrays. Mirrors CUarray_format_enum in the CUDA driver API header.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnsignedInt8 = 1

8-bit unsigned integer channel.

§

UnsignedInt16 = 2

16-bit unsigned integer channel.

§

UnsignedInt32 = 3

32-bit unsigned integer channel.

§

SignedInt8 = 8

8-bit signed integer channel.

§

SignedInt16 = 9

16-bit signed integer channel.

§

SignedInt32 = 10

32-bit signed integer channel.

§

Half = 16

16-bit IEEE 754 half-precision float channel.

§

Float = 32

32-bit IEEE 754 single-precision float channel.

§

Nv12 = 176

NV12 planar YUV format (special 2-plane layout).

§

UnormInt8X1 = 192

8-bit unsigned normalized integer (1 channel).

§

UnormInt8X2 = 193

8-bit unsigned normalized integer (2 channels).

§

UnormInt8X4 = 194

8-bit unsigned normalized integer (4 channels).

§

UnormInt16X1 = 195

16-bit unsigned normalized integer (1 channel).

§

UnormInt16X2 = 196

16-bit unsigned normalized integer (2 channels).

§

UnormInt16X4 = 197

16-bit unsigned normalized integer (4 channels).

§

SnormInt8X1 = 198

8-bit signed normalized integer (1 channel).

§

SnormInt8X2 = 199

8-bit signed normalized integer (2 channels).

§

SnormInt8X4 = 200

8-bit signed normalized integer (4 channels).

§

SnormInt16X1 = 201

16-bit signed normalized integer (1 channel).

§

SnormInt16X2 = 202

16-bit signed normalized integer (2 channels).

§

SnormInt16X4 = 203

16-bit signed normalized integer (4 channels).

§

Bc1Unorm = 145

BC1 compressed (DXT1) unsigned.

§

Bc1UnormSrgb = 146

BC1 compressed (DXT1) unsigned, sRGB.

§

Bc2Unorm = 147

BC2 compressed (DXT3) unsigned.

§

Bc2UnormSrgb = 148

BC2 compressed (DXT3) unsigned, sRGB.

§

Bc3Unorm = 149

BC3 compressed (DXT5) unsigned.

§

Bc3UnormSrgb = 150

BC3 compressed (DXT5) unsigned, sRGB.

§

Bc4Unorm = 151

BC4 unsigned.

§

Bc4Snorm = 152

BC4 signed.

§

Bc5Unorm = 153

BC5 unsigned.

§

Bc5Snorm = 154

BC5 signed.

§

Bc6hUf16 = 155

BC6H unsigned 16-bit float.

§

Bc6hSf16 = 156

BC6H signed 16-bit float.

§

Bc7Unorm = 157

BC7 unsigned.

§

Bc7UnormSrgb = 158

BC7 unsigned, sRGB.

Trait Implementations§

Source§

impl Clone for CUarray_format

Source§

fn clone(&self) -> CUarray_format

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CUarray_format

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for CUarray_format

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CUarray_format

Source§

fn eq(&self, other: &CUarray_format) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for CUarray_format

Source§

impl Eq for CUarray_format

Source§

impl StructuralPartialEq for CUarray_format

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more