#[repr(transparent)]pub struct DataType(pub UInteger);Expand description
Shader data types.
C++ equivalent: MTL::DataType
Tuple Fields§
§0: UIntegerImplementations§
Source§impl DataType
impl DataType
pub const NONE: Self
pub const STRUCT: Self
pub const ARRAY: Self
pub const FLOAT: Self
pub const FLOAT2: Self
pub const FLOAT3: Self
pub const FLOAT4: Self
pub const FLOAT2X2: Self
pub const FLOAT2X3: Self
pub const FLOAT2X4: Self
pub const FLOAT3X2: Self
pub const FLOAT3X3: Self
pub const FLOAT3X4: Self
pub const FLOAT4X2: Self
pub const FLOAT4X3: Self
pub const FLOAT4X4: Self
pub const HALF: Self
pub const HALF2: Self
pub const HALF3: Self
pub const HALF4: Self
pub const HALF2X2: Self
pub const HALF2X3: Self
pub const HALF2X4: Self
pub const HALF3X2: Self
pub const HALF3X3: Self
pub const HALF3X4: Self
pub const HALF4X2: Self
pub const HALF4X3: Self
pub const HALF4X4: Self
pub const INT: Self
pub const INT2: Self
pub const INT3: Self
pub const INT4: Self
pub const UINT: Self
pub const UINT2: Self
pub const UINT3: Self
pub const UINT4: Self
pub const SHORT: Self
pub const SHORT2: Self
pub const SHORT3: Self
pub const SHORT4: Self
pub const USHORT: Self
pub const USHORT2: Self
pub const USHORT3: Self
pub const USHORT4: Self
pub const CHAR: Self
pub const CHAR2: Self
pub const CHAR3: Self
pub const CHAR4: Self
pub const UCHAR: Self
pub const UCHAR2: Self
pub const UCHAR3: Self
pub const UCHAR4: Self
pub const BOOL: Self
pub const BOOL2: Self
pub const BOOL3: Self
pub const BOOL4: Self
pub const TEXTURE: Self
pub const SAMPLER: Self
pub const POINTER: Self
pub const R8_UNORM: Self
pub const R8_SNORM: Self
pub const R16_UNORM: Self
pub const R16_SNORM: Self
pub const RG8_UNORM: Self
pub const RG8_SNORM: Self
pub const RG16_UNORM: Self
pub const RG16_SNORM: Self
pub const RGBA8_UNORM: Self
pub const RGBA8_UNORM_SRGB: Self
pub const RGBA8_SNORM: Self
pub const RGBA16_UNORM: Self
pub const RGBA16_SNORM: Self
pub const RGB10A2_UNORM: Self
pub const RG11B10_FLOAT: Self
pub const RGB9E5_FLOAT: Self
pub const RENDER_PIPELINE: Self
pub const COMPUTE_PIPELINE: Self
pub const INDIRECT_COMMAND_BUFFER: Self
pub const LONG: Self
pub const LONG2: Self
pub const LONG3: Self
pub const LONG4: Self
pub const ULONG: Self
pub const ULONG2: Self
pub const ULONG3: Self
pub const ULONG4: Self
pub const VISIBLE_FUNCTION_TABLE: Self
pub const INTERSECTION_FUNCTION_TABLE: Self
pub const PRIMITIVE_ACCELERATION_STRUCTURE: Self
pub const INSTANCE_ACCELERATION_STRUCTURE: Self
pub const BFLOAT: Self
pub const BFLOAT2: Self
pub const BFLOAT3: Self
pub const BFLOAT4: Self
pub const DEPTH_STENCIL_STATE: Self
pub const TENSOR: Self
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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