Enum rcudnn_sys::cudaResourceViewFormat[][src]

#[repr(u32)]
#[non_exhaustive]
pub enum cudaResourceViewFormat {
Show 35 variants cudaResViewFormatNone, cudaResViewFormatUnsignedChar1, cudaResViewFormatUnsignedChar2, cudaResViewFormatUnsignedChar4, cudaResViewFormatSignedChar1, cudaResViewFormatSignedChar2, cudaResViewFormatSignedChar4, cudaResViewFormatUnsignedShort1, cudaResViewFormatUnsignedShort2, cudaResViewFormatUnsignedShort4, cudaResViewFormatSignedShort1, cudaResViewFormatSignedShort2, cudaResViewFormatSignedShort4, cudaResViewFormatUnsignedInt1, cudaResViewFormatUnsignedInt2, cudaResViewFormatUnsignedInt4, cudaResViewFormatSignedInt1, cudaResViewFormatSignedInt2, cudaResViewFormatSignedInt4, cudaResViewFormatHalf1, cudaResViewFormatHalf2, cudaResViewFormatHalf4, cudaResViewFormatFloat1, cudaResViewFormatFloat2, cudaResViewFormatFloat4, cudaResViewFormatUnsignedBlockCompressed1, cudaResViewFormatUnsignedBlockCompressed2, cudaResViewFormatUnsignedBlockCompressed3, cudaResViewFormatUnsignedBlockCompressed4, cudaResViewFormatSignedBlockCompressed4, cudaResViewFormatUnsignedBlockCompressed5, cudaResViewFormatSignedBlockCompressed5, cudaResViewFormatUnsignedBlockCompressed6H, cudaResViewFormatSignedBlockCompressed6H, cudaResViewFormatUnsignedBlockCompressed7,
}
Expand description

CUDA texture resource view 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.

cudaResViewFormatNone

< No resource view format (use underlying resource format)

cudaResViewFormatUnsignedChar1

< 1 channel unsigned 8-bit integers

cudaResViewFormatUnsignedChar2

< 2 channel unsigned 8-bit integers

cudaResViewFormatUnsignedChar4

< 4 channel unsigned 8-bit integers

cudaResViewFormatSignedChar1

< 1 channel signed 8-bit integers

cudaResViewFormatSignedChar2

< 2 channel signed 8-bit integers

cudaResViewFormatSignedChar4

< 4 channel signed 8-bit integers

cudaResViewFormatUnsignedShort1

< 1 channel unsigned 16-bit integers

cudaResViewFormatUnsignedShort2

< 2 channel unsigned 16-bit integers

cudaResViewFormatUnsignedShort4

< 4 channel unsigned 16-bit integers

cudaResViewFormatSignedShort1

< 1 channel signed 16-bit integers

cudaResViewFormatSignedShort2

< 2 channel signed 16-bit integers

cudaResViewFormatSignedShort4

< 4 channel signed 16-bit integers

cudaResViewFormatUnsignedInt1

< 1 channel unsigned 32-bit integers

cudaResViewFormatUnsignedInt2

< 2 channel unsigned 32-bit integers

cudaResViewFormatUnsignedInt4

< 4 channel unsigned 32-bit integers

cudaResViewFormatSignedInt1

< 1 channel signed 32-bit integers

cudaResViewFormatSignedInt2

< 2 channel signed 32-bit integers

cudaResViewFormatSignedInt4

< 4 channel signed 32-bit integers

cudaResViewFormatHalf1

< 1 channel 16-bit floating point

cudaResViewFormatHalf2

< 2 channel 16-bit floating point

cudaResViewFormatHalf4

< 4 channel 16-bit floating point

cudaResViewFormatFloat1

< 1 channel 32-bit floating point

cudaResViewFormatFloat2

< 2 channel 32-bit floating point

cudaResViewFormatFloat4

< 4 channel 32-bit floating point

cudaResViewFormatUnsignedBlockCompressed1

< Block compressed 1

cudaResViewFormatUnsignedBlockCompressed2

< Block compressed 2

cudaResViewFormatUnsignedBlockCompressed3

< Block compressed 3

cudaResViewFormatUnsignedBlockCompressed4

< Block compressed 4 unsigned

cudaResViewFormatSignedBlockCompressed4

< Block compressed 4 signed

cudaResViewFormatUnsignedBlockCompressed5

< Block compressed 5 unsigned

cudaResViewFormatSignedBlockCompressed5

< Block compressed 5 signed

cudaResViewFormatUnsignedBlockCompressed6H

< Block compressed 6 unsigned half-float

cudaResViewFormatSignedBlockCompressed6H

< Block compressed 6 signed half-float

cudaResViewFormatUnsignedBlockCompressed7

< Block compressed 7

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.