Enum rcudnn::cudaResourceViewFormat
source · #[non_exhaustive]#[repr(u32)]pub enum cudaResourceViewFormat {
Show 35 variants
cudaResViewFormatNone = 0,
cudaResViewFormatUnsignedChar1 = 1,
cudaResViewFormatUnsignedChar2 = 2,
cudaResViewFormatUnsignedChar4 = 3,
cudaResViewFormatSignedChar1 = 4,
cudaResViewFormatSignedChar2 = 5,
cudaResViewFormatSignedChar4 = 6,
cudaResViewFormatUnsignedShort1 = 7,
cudaResViewFormatUnsignedShort2 = 8,
cudaResViewFormatUnsignedShort4 = 9,
cudaResViewFormatSignedShort1 = 10,
cudaResViewFormatSignedShort2 = 11,
cudaResViewFormatSignedShort4 = 12,
cudaResViewFormatUnsignedInt1 = 13,
cudaResViewFormatUnsignedInt2 = 14,
cudaResViewFormatUnsignedInt4 = 15,
cudaResViewFormatSignedInt1 = 16,
cudaResViewFormatSignedInt2 = 17,
cudaResViewFormatSignedInt4 = 18,
cudaResViewFormatHalf1 = 19,
cudaResViewFormatHalf2 = 20,
cudaResViewFormatHalf4 = 21,
cudaResViewFormatFloat1 = 22,
cudaResViewFormatFloat2 = 23,
cudaResViewFormatFloat4 = 24,
cudaResViewFormatUnsignedBlockCompressed1 = 25,
cudaResViewFormatUnsignedBlockCompressed2 = 26,
cudaResViewFormatUnsignedBlockCompressed3 = 27,
cudaResViewFormatUnsignedBlockCompressed4 = 28,
cudaResViewFormatSignedBlockCompressed4 = 29,
cudaResViewFormatUnsignedBlockCompressed5 = 30,
cudaResViewFormatSignedBlockCompressed5 = 31,
cudaResViewFormatUnsignedBlockCompressed6H = 32,
cudaResViewFormatSignedBlockCompressed6H = 33,
cudaResViewFormatUnsignedBlockCompressed7 = 34,
}
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 = 0
cudaResViewFormatUnsignedChar1 = 1
cudaResViewFormatUnsignedChar2 = 2
cudaResViewFormatUnsignedChar4 = 3
cudaResViewFormatSignedChar1 = 4
cudaResViewFormatSignedChar2 = 5
cudaResViewFormatSignedChar4 = 6
cudaResViewFormatUnsignedShort1 = 7
cudaResViewFormatUnsignedShort2 = 8
cudaResViewFormatUnsignedShort4 = 9
cudaResViewFormatSignedShort1 = 10
cudaResViewFormatSignedShort2 = 11
cudaResViewFormatSignedShort4 = 12
cudaResViewFormatUnsignedInt1 = 13
cudaResViewFormatUnsignedInt2 = 14
cudaResViewFormatUnsignedInt4 = 15
cudaResViewFormatSignedInt1 = 16
cudaResViewFormatSignedInt2 = 17
cudaResViewFormatSignedInt4 = 18
cudaResViewFormatHalf1 = 19
cudaResViewFormatHalf2 = 20
cudaResViewFormatHalf4 = 21
cudaResViewFormatFloat1 = 22
cudaResViewFormatFloat2 = 23
cudaResViewFormatFloat4 = 24
cudaResViewFormatUnsignedBlockCompressed1 = 25
cudaResViewFormatUnsignedBlockCompressed2 = 26
cudaResViewFormatUnsignedBlockCompressed3 = 27
cudaResViewFormatUnsignedBlockCompressed4 = 28
cudaResViewFormatSignedBlockCompressed4 = 29
cudaResViewFormatUnsignedBlockCompressed5 = 30
cudaResViewFormatSignedBlockCompressed5 = 31
cudaResViewFormatUnsignedBlockCompressed6H = 32
cudaResViewFormatSignedBlockCompressed6H = 33
cudaResViewFormatUnsignedBlockCompressed7 = 34
Trait Implementations§
source§impl Clone for cudaResourceViewFormat
impl Clone for cudaResourceViewFormat
source§fn clone(&self) -> cudaResourceViewFormat
fn clone(&self) -> cudaResourceViewFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for cudaResourceViewFormat
impl Debug for cudaResourceViewFormat
source§impl Hash for cudaResourceViewFormat
impl Hash for cudaResourceViewFormat
source§impl PartialEq for cudaResourceViewFormat
impl PartialEq for cudaResourceViewFormat
source§fn eq(&self, other: &cudaResourceViewFormat) -> bool
fn eq(&self, other: &cudaResourceViewFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for cudaResourceViewFormat
impl Eq for cudaResourceViewFormat
impl StructuralPartialEq for cudaResourceViewFormat
Auto Trait Implementations§
impl RefUnwindSafe for cudaResourceViewFormat
impl Send for cudaResourceViewFormat
impl Sync for cudaResourceViewFormat
impl Unpin for cudaResourceViewFormat
impl UnwindSafe for cudaResourceViewFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more