MTLDataType

Enum MTLDataType 

Source
#[repr(u64)]
pub enum MTLDataType {
Show 95 variants None = 0, Struct = 1, Array = 2, Float = 3, Float2 = 4, Float3 = 5, Float4 = 6, Float2x2 = 7, Float2x3 = 8, Float2x4 = 9, Float3x2 = 10, Float3x3 = 11, Float3x4 = 12, Float4x2 = 13, Float4x3 = 14, Float4x4 = 15, Half = 16, Half2 = 17, Half3 = 18, Half4 = 19, Half2x2 = 20, Half2x3 = 21, Half2x4 = 22, Half3x2 = 23, Half3x3 = 24, Half3x4 = 25, Half4x2 = 26, Half4x3 = 27, Half4x4 = 28, Int = 29, Int2 = 30, Int3 = 31, Int4 = 32, UInt = 33, UInt2 = 34, UInt3 = 35, UInt4 = 36, Short = 37, Short2 = 38, Short3 = 39, Short4 = 40, UShort = 41, UShort2 = 42, UShort3 = 43, UShort4 = 44, Char = 45, Char2 = 46, Char3 = 47, Char4 = 48, UChar = 49, UChar2 = 50, UChar3 = 51, UChar4 = 52, Bool = 53, Bool2 = 54, Bool3 = 55, Bool4 = 56, Texture = 58, Sampler = 59, Pointer = 60, R8Unorm = 62, R8Snorm = 63, R16Unorm = 64, R16Snorm = 65, RG8Unorm = 66, RG8Snorm = 67, RG16Unorm = 68, RG16Snorm = 69, RGBA8Unorm = 70, RGBA8Unorm_sRGB = 71, RGBA8Snorm = 72, RGBA16Unorm = 73, RGBA16Snorm = 74, RGB10A2Unorm = 75, RG11B10Float = 76, RGB9E5Float = 77, RenderPipeline = 78, ComputePipeline = 79, IndirectCommandBuffer = 80, Long = 81, Long2 = 82, Long3 = 83, Long4 = 84, ULong = 85, ULong2 = 86, ULong3 = 87, ULong4 = 88, VisibleFunctionTable = 115, IntersectionFunctionTable = 116, PrimitiveAccelerationStructure = 117, InstanceAccelerationStructure = 118, BFloat = 121, BFloat2 = 122, BFloat3 = 123, BFloat4 = 124,
}
Expand description

Variants§

§

None = 0

§

Struct = 1

§

Array = 2

§

Float = 3

§

Float2 = 4

§

Float3 = 5

§

Float4 = 6

§

Float2x2 = 7

§

Float2x3 = 8

§

Float2x4 = 9

§

Float3x2 = 10

§

Float3x3 = 11

§

Float3x4 = 12

§

Float4x2 = 13

§

Float4x3 = 14

§

Float4x4 = 15

§

Half = 16

§

Half2 = 17

§

Half3 = 18

§

Half4 = 19

§

Half2x2 = 20

§

Half2x3 = 21

§

Half2x4 = 22

§

Half3x2 = 23

§

Half3x3 = 24

§

Half3x4 = 25

§

Half4x2 = 26

§

Half4x3 = 27

§

Half4x4 = 28

§

Int = 29

§

Int2 = 30

§

Int3 = 31

§

Int4 = 32

§

UInt = 33

§

UInt2 = 34

§

UInt3 = 35

§

UInt4 = 36

§

Short = 37

§

Short2 = 38

§

Short3 = 39

§

Short4 = 40

§

UShort = 41

§

UShort2 = 42

§

UShort3 = 43

§

UShort4 = 44

§

Char = 45

§

Char2 = 46

§

Char3 = 47

§

Char4 = 48

§

UChar = 49

§

UChar2 = 50

§

UChar3 = 51

§

UChar4 = 52

§

Bool = 53

§

Bool2 = 54

§

Bool3 = 55

§

Bool4 = 56

§

Texture = 58

§

Sampler = 59

§

Pointer = 60

§

R8Unorm = 62

§

R8Snorm = 63

§

R16Unorm = 64

§

R16Snorm = 65

§

RG8Unorm = 66

§

RG8Snorm = 67

§

RG16Unorm = 68

§

RG16Snorm = 69

§

RGBA8Unorm = 70

§

RGBA8Unorm_sRGB = 71

§

RGBA8Snorm = 72

§

RGBA16Unorm = 73

§

RGBA16Snorm = 74

§

RGB10A2Unorm = 75

§

RG11B10Float = 76

§

RGB9E5Float = 77

§

RenderPipeline = 78

§

ComputePipeline = 79

§

IndirectCommandBuffer = 80

§

Long = 81

§

Long2 = 82

§

Long3 = 83

§

Long4 = 84

§

ULong = 85

§

ULong2 = 86

§

ULong3 = 87

§

ULong4 = 88

§

VisibleFunctionTable = 115

§

IntersectionFunctionTable = 116

§

PrimitiveAccelerationStructure = 117

§

InstanceAccelerationStructure = 118

§

BFloat = 121

§

BFloat2 = 122

§

BFloat3 = 123

§

BFloat4 = 124

Trait Implementations§

Source§

impl Clone for MTLDataType

Source§

fn clone(&self) -> MTLDataType

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MTLDataType

Source§

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

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

impl Hash for MTLDataType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0§

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 MTLDataType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0§

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 Copy for MTLDataType

Source§

impl Eq for MTLDataType

Source§

impl StructuralPartialEq for MTLDataType

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.