Skip to main content

CUresourceViewFormat

Enum CUresourceViewFormat 

Source
#[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
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.
§

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

Source§

fn clone(&self) -> CUresourceViewFormat

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for CUresourceViewFormat

Source§

impl Debug for CUresourceViewFormat

Source§

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

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

impl Eq for CUresourceViewFormat

Source§

impl Hash for CUresourceViewFormat

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 CUresourceViewFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for CUresourceViewFormat

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