pub enum Type {
Show 26 variants
Void,
Bool,
Int {
width: u32,
signedness: u32,
},
Float {
width: u32,
},
Vector {
component_type: Token<Type>,
component_count: u32,
},
Matrix {
column_type: Token<Type>,
column_count: u32,
},
Image {
sampled_type: Token<Type>,
dim: Dim,
depth: u32,
arrayed: u32,
ms: u32,
sampled: u32,
image_format: ImageFormat,
access_qualifier: Option<AccessQualifier>,
},
Sampler,
SampledImage {
image_type: Token<Type>,
},
Array {
element_type: Token<Type>,
length: Token<Constant>,
},
RuntimeArray {
element_type: Token<Type>,
},
Struct {
member_0_type_member_1_type: Vec<StructMember>,
},
Opaque {
the_name_of_the_opaque_type: String,
},
Pointer {
storage_class: StorageClass,
ty: Token<Type>,
},
Function {
return_type: Token<Type>,
parameter_0_type_parameter_1_type: Vec<Token<Type>>,
},
Event,
DeviceEvent,
ReserveId,
Queue,
Pipe {
qualifier: AccessQualifier,
},
ForwardPointer {
pointer_type: Token<Type>,
storage_class: StorageClass,
},
PipeStorage,
NamedBarrier,
RayQueryKHR,
AccelerationStructureKHR,
CooperativeMatrixNV {
component_type: Token<Type>,
execution: Word,
rows: Word,
columns: Word,
},
}
Variants§
Void
Bool
Int
Float
Vector
Matrix
Image
Sampler
SampledImage
Array
RuntimeArray
Struct
Fields
§
member_0_type_member_1_type: Vec<StructMember>
Opaque
Pointer
Function
Event
DeviceEvent
ReserveId
Queue
Pipe
Fields
§
qualifier: AccessQualifier
ForwardPointer
PipeStorage
NamedBarrier
RayQueryKHR
AccelerationStructureKHR
CooperativeMatrixNV
Implementations§
source§impl Type
impl Type
pub fn is_numerical_type(&self) -> bool
pub fn is_scalar_type(&self) -> bool
pub fn is_aggregate_type(&self) -> bool
pub fn is_composite_type(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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