#[non_exhaustive]#[repr(u32)]pub enum CUresourceViewFormat {
Show 36 variants
None = 0,
Uint1x8 = 1,
Uint2x8 = 2,
Uint4x8 = 3,
Sint1x8 = 4,
Sint2x8 = 5,
Sint4x8 = 6,
Uint1x16 = 7,
Uint2x16 = 8,
Uint4x16 = 9,
Sint1x16 = 10,
Sint2x16 = 11,
Sint4x16 = 12,
Uint1x32 = 13,
Uint2x32 = 14,
Uint4x32 = 15,
Sint1x32 = 16,
Sint2x32 = 17,
Sint4x32 = 18,
Float1x16 = 19,
Float2x16 = 20,
Float4x16 = 21,
Float1x32 = 22,
Float2x32 = 23,
Float4x32 = 24,
UnsignedBc1 = 25,
UnsignedBc2 = 26,
UnsignedBc3 = 27,
UnsignedBc4 = 28,
SignedBc4 = 29,
UnsignedBc5 = 30,
SignedBc5 = 31,
UnsignedBc6h = 32,
SignedBc6h = 33,
UnsignedBc7 = 34,
Nv12 = 35,
}Expand description
Format used to re-interpret a CUDA array in a resource view.
Mirrors CUresourceViewFormat_enum in the CUDA driver API header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None = 0
No re-interpretation (use the array’s own format).
Uint1x8 = 1
Re-interpret as 1×8-bit unsigned integer.
Uint2x8 = 2
Re-interpret as 2×8-bit unsigned integer.
Uint4x8 = 3
Re-interpret as 4×8-bit unsigned integer.
Sint1x8 = 4
Re-interpret as 1×8-bit signed integer.
Sint2x8 = 5
Re-interpret as 2×8-bit signed integer.
Sint4x8 = 6
Re-interpret as 4×8-bit signed integer.
Uint1x16 = 7
Re-interpret as 1×16-bit unsigned integer.
Uint2x16 = 8
Re-interpret as 2×16-bit unsigned integer.
Uint4x16 = 9
Re-interpret as 4×16-bit unsigned integer.
Sint1x16 = 10
Re-interpret as 1×16-bit signed integer.
Sint2x16 = 11
Re-interpret as 2×16-bit signed integer.
Sint4x16 = 12
Re-interpret as 4×16-bit signed integer.
Uint1x32 = 13
Re-interpret as 1×32-bit unsigned integer.
Uint2x32 = 14
Re-interpret as 2×32-bit unsigned integer.
Uint4x32 = 15
Re-interpret as 4×32-bit unsigned integer.
Sint1x32 = 16
Re-interpret as 1×32-bit signed integer.
Sint2x32 = 17
Re-interpret as 2×32-bit signed integer.
Sint4x32 = 18
Re-interpret as 4×32-bit signed integer.
Float1x16 = 19
Re-interpret as 1×16-bit float.
Float2x16 = 20
Re-interpret as 2×16-bit float.
Float4x16 = 21
Re-interpret as 4×16-bit float.
Float1x32 = 22
Re-interpret as 1×32-bit float.
Float2x32 = 23
Re-interpret as 2×32-bit float.
Float4x32 = 24
Re-interpret as 4×32-bit float.
UnsignedBc1 = 25
BC1 unsigned normal compressed.
UnsignedBc2 = 26
BC2 unsigned normal compressed.
UnsignedBc3 = 27
BC3 unsigned normal compressed.
UnsignedBc4 = 28
BC4 unsigned normal compressed.
SignedBc4 = 29
BC4 signed normal compressed.
UnsignedBc5 = 30
BC5 unsigned normal compressed.
SignedBc5 = 31
BC5 signed normal compressed.
UnsignedBc6h = 32
BC6H unsigned half-float.
SignedBc6h = 33
BC6H signed half-float.
UnsignedBc7 = 34
BC7 unsigned.
Nv12 = 35
NV12 planar YUV.
Trait Implementations§
Source§impl Clone for CUresourceViewFormat
impl Clone for CUresourceViewFormat
Source§fn clone(&self) -> CUresourceViewFormat
fn clone(&self) -> CUresourceViewFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CUresourceViewFormat
Source§impl Debug for CUresourceViewFormat
impl Debug for CUresourceViewFormat
impl Eq for CUresourceViewFormat
Source§impl Hash for CUresourceViewFormat
impl Hash for CUresourceViewFormat
Source§impl PartialEq for CUresourceViewFormat
impl PartialEq for CUresourceViewFormat
Source§fn eq(&self, other: &CUresourceViewFormat) -> bool
fn eq(&self, other: &CUresourceViewFormat) -> bool
self and other values to be equal, and is used by ==.