Struct vulkano::shader::spirv::Spirv [−][src]
pub struct Spirv { /* fields omitted */ }
Expand description
A parsed and analyzed SPIR-V module.
Implementations
Parses a SPIR-V document from a list of words.
Returns a reference to the instructions in the module.
Returns the upper bound of Id
s. All Id
s should have a numeric value strictly less than
this value.
Returns information about an Id
.
Panics
- Panics if
id
is not defined in this module. This can in theory only happpen if you are mixingId
s from different modules.
Returns an iterator over all Capability
instructions.
Returns an iterator over all Extension
instructions.
Returns an iterator over all ExtInstImport
instructions.
Returns the MemoryModel
instruction.
Returns an iterator over all EntryPoint
instructions.
Returns an iterator over all execution mode instructions.
Returns an iterator over all name debug instructions.
Returns an iterator over all decoration instructions.
Returns an iterator over all global declaration instructions: types, constants and global variables.
Note: This can also include Line
and NoLine
instructions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Spirv
impl UnwindSafe for Spirv
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.