pub enum MetalType {
Show 32 variants
Bool,
Half,
Float,
Int,
Uint,
Short,
Ushort,
Char,
Uchar,
Long,
Ulong,
Float2,
Float3,
Float4,
Half2,
Half3,
Half4,
Int2,
Int3,
Int4,
Uint2,
Uint3,
Uint4,
Float2x2,
Float3x3,
Float4x4,
Array(Box<MetalType>, usize),
Struct(String),
Texture(Box<MetalType>),
Sampler,
Pointer(Box<MetalType>, MetalAddressSpace),
Void,
}Expand description
Metal Shading Language type system.
Variants§
Bool
bool
Half
half (16-bit float)
Float
float (32-bit float)
Int
int (32-bit signed)
Uint
uint (32-bit unsigned)
Short
short (16-bit signed)
Ushort
ushort (16-bit unsigned)
Char
char (8-bit signed)
Uchar
uchar (8-bit unsigned)
Long
long (64-bit signed)
Ulong
ulong (64-bit unsigned)
Float2
float2
Float3
float3
Float4
float4
Half2
half2
Half3
half3
Half4
half4
Int2
int2
Int3
int3
Int4
int4
Uint2
uint2
Uint3
uint3
Uint4
uint4
Float2x2
float2x2
Float3x3
float3x3
Float4x4
float4x4
Array(Box<MetalType>, usize)
Fixed-size array: T[N]
Struct(String)
Named struct or typedef
Texture(Box<MetalType>)
texture2d<float> etc — simplified to texture<element_type>
Sampler
sampler
Pointer(Box<MetalType>, MetalAddressSpace)
Pointer to inner type with an address space
Void
void
Trait Implementations§
impl Eq for MetalType
impl StructuralPartialEq for MetalType
Auto Trait Implementations§
impl Freeze for MetalType
impl RefUnwindSafe for MetalType
impl Send for MetalType
impl Sync for MetalType
impl Unpin for MetalType
impl UnsafeUnpin for MetalType
impl UnwindSafe for MetalType
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