#[non_exhaustive]
#[repr(u32)]
pub enum CUarray_format_enum {
Show 35 variants CU_AD_FORMAT_UNSIGNED_INT8 = 1, CU_AD_FORMAT_UNSIGNED_INT16 = 2, CU_AD_FORMAT_UNSIGNED_INT32 = 3, CU_AD_FORMAT_SIGNED_INT8 = 8, CU_AD_FORMAT_SIGNED_INT16 = 9, CU_AD_FORMAT_SIGNED_INT32 = 10, CU_AD_FORMAT_HALF = 16, CU_AD_FORMAT_FLOAT = 32, CU_AD_FORMAT_NV12 = 176, CU_AD_FORMAT_UNORM_INT8X1 = 192, CU_AD_FORMAT_UNORM_INT8X2 = 193, CU_AD_FORMAT_UNORM_INT8X4 = 194, CU_AD_FORMAT_UNORM_INT16X1 = 195, CU_AD_FORMAT_UNORM_INT16X2 = 196, CU_AD_FORMAT_UNORM_INT16X4 = 197, CU_AD_FORMAT_SNORM_INT8X1 = 198, CU_AD_FORMAT_SNORM_INT8X2 = 199, CU_AD_FORMAT_SNORM_INT8X4 = 200, CU_AD_FORMAT_SNORM_INT16X1 = 201, CU_AD_FORMAT_SNORM_INT16X2 = 202, CU_AD_FORMAT_SNORM_INT16X4 = 203, CU_AD_FORMAT_BC1_UNORM = 145, CU_AD_FORMAT_BC1_UNORM_SRGB = 146, CU_AD_FORMAT_BC2_UNORM = 147, CU_AD_FORMAT_BC2_UNORM_SRGB = 148, CU_AD_FORMAT_BC3_UNORM = 149, CU_AD_FORMAT_BC3_UNORM_SRGB = 150, CU_AD_FORMAT_BC4_UNORM = 151, CU_AD_FORMAT_BC4_SNORM = 152, CU_AD_FORMAT_BC5_UNORM = 153, CU_AD_FORMAT_BC5_SNORM = 154, CU_AD_FORMAT_BC6H_UF16 = 155, CU_AD_FORMAT_BC6H_SF16 = 156, CU_AD_FORMAT_BC7_UNORM = 157, CU_AD_FORMAT_BC7_UNORM_SRGB = 158,
}
Expand description

Array formats

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.
§

CU_AD_FORMAT_UNSIGNED_INT8 = 1

< Unsigned 8-bit integers

§

CU_AD_FORMAT_UNSIGNED_INT16 = 2

< Unsigned 16-bit integers

§

CU_AD_FORMAT_UNSIGNED_INT32 = 3

< Unsigned 32-bit integers

§

CU_AD_FORMAT_SIGNED_INT8 = 8

< Signed 8-bit integers

§

CU_AD_FORMAT_SIGNED_INT16 = 9

< Signed 16-bit integers

§

CU_AD_FORMAT_SIGNED_INT32 = 10

< Signed 32-bit integers

§

CU_AD_FORMAT_HALF = 16

< 16-bit floating point

§

CU_AD_FORMAT_FLOAT = 32

< 32-bit floating point

§

CU_AD_FORMAT_NV12 = 176

< 8-bit YUV planar format, with 4:2:0 sampling

§

CU_AD_FORMAT_UNORM_INT8X1 = 192

< 1 channel unsigned 8-bit normalized integer

§

CU_AD_FORMAT_UNORM_INT8X2 = 193

< 2 channel unsigned 8-bit normalized integer

§

CU_AD_FORMAT_UNORM_INT8X4 = 194

< 4 channel unsigned 8-bit normalized integer

§

CU_AD_FORMAT_UNORM_INT16X1 = 195

< 1 channel unsigned 16-bit normalized integer

§

CU_AD_FORMAT_UNORM_INT16X2 = 196

< 2 channel unsigned 16-bit normalized integer

§

CU_AD_FORMAT_UNORM_INT16X4 = 197

< 4 channel unsigned 16-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT8X1 = 198

< 1 channel signed 8-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT8X2 = 199

< 2 channel signed 8-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT8X4 = 200

< 4 channel signed 8-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT16X1 = 201

< 1 channel signed 16-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT16X2 = 202

< 2 channel signed 16-bit normalized integer

§

CU_AD_FORMAT_SNORM_INT16X4 = 203

< 4 channel signed 16-bit normalized integer

§

CU_AD_FORMAT_BC1_UNORM = 145

< 4 channel unsigned normalized block-compressed (BC1 compression) format

§

CU_AD_FORMAT_BC1_UNORM_SRGB = 146

< 4 channel unsigned normalized block-compressed (BC1 compression) format with sRGB encoding

§

CU_AD_FORMAT_BC2_UNORM = 147

< 4 channel unsigned normalized block-compressed (BC2 compression) format

§

CU_AD_FORMAT_BC2_UNORM_SRGB = 148

< 4 channel unsigned normalized block-compressed (BC2 compression) format with sRGB encoding

§

CU_AD_FORMAT_BC3_UNORM = 149

< 4 channel unsigned normalized block-compressed (BC3 compression) format

§

CU_AD_FORMAT_BC3_UNORM_SRGB = 150

< 4 channel unsigned normalized block-compressed (BC3 compression) format with sRGB encoding

§

CU_AD_FORMAT_BC4_UNORM = 151

< 1 channel unsigned normalized block-compressed (BC4 compression) format

§

CU_AD_FORMAT_BC4_SNORM = 152

< 1 channel signed normalized block-compressed (BC4 compression) format

§

CU_AD_FORMAT_BC5_UNORM = 153

< 2 channel unsigned normalized block-compressed (BC5 compression) format

§

CU_AD_FORMAT_BC5_SNORM = 154

< 2 channel signed normalized block-compressed (BC5 compression) format

§

CU_AD_FORMAT_BC6H_UF16 = 155

< 3 channel unsigned half-float block-compressed (BC6H compression) format

§

CU_AD_FORMAT_BC6H_SF16 = 156

< 3 channel signed half-float block-compressed (BC6H compression) format

§

CU_AD_FORMAT_BC7_UNORM = 157

< 4 channel unsigned normalized block-compressed (BC7 compression) format

§

CU_AD_FORMAT_BC7_UNORM_SRGB = 158

< 4 channel unsigned normalized block-compressed (BC7 compression) format with sRGB encoding

Trait Implementations§

source§

impl Clone for CUarray_format_enum

source§

fn clone(&self) -> CUarray_format_enum

Returns a copy 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_enum

source§

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

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

impl Hash for CUarray_format_enum

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_enum

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CUarray_format_enum

source§

impl Eq for CUarray_format_enum

source§

impl StructuralPartialEq for CUarray_format_enum

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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,

§

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>,

§

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>,

§

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.