Enum rspirv::sr::Type[][src]

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

Fields of Int

width: u32signedness: u32
Float

Fields of Float

width: u32
Vector

Fields of Vector

component_type: Token<Type>component_count: u32
Matrix

Fields of Matrix

column_type: Token<Type>column_count: u32
Image

Fields of Image

sampled_type: Token<Type>dim: Dimdepth: u32arrayed: u32ms: u32sampled: u32image_format: ImageFormataccess_qualifier: Option<AccessQualifier>
Sampler
SampledImage

Fields of SampledImage

image_type: Token<Type>
Array

Fields of Array

element_type: Token<Type>length: Token<Constant>
RuntimeArray

Fields of RuntimeArray

element_type: Token<Type>
Struct

Fields of Struct

member_0_type_member_1_type: Vec<StructMember>
Opaque

Fields of Opaque

the_name_of_the_opaque_type: String
Pointer

Fields of Pointer

storage_class: StorageClassty: Token<Type>
Function

Fields of Function

return_type: Token<Type>parameter_0_type_parameter_1_type: Vec<Token<Type>>
Event
DeviceEvent
ReserveId
Queue
Pipe

Fields of Pipe

qualifier: AccessQualifier
ForwardPointer

Fields of ForwardPointer

pointer_type: Token<Type>storage_class: StorageClass
PipeStorage
NamedBarrier
RayQueryKHR
AccelerationStructureKHR
CooperativeMatrixNV

Fields of CooperativeMatrixNV

component_type: Token<Type>execution: Wordrows: Wordcolumns: Word

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.