Struct rspirv::dr::Function [−][src]
pub struct Function {
pub def: Option<Instruction>,
pub end: Option<Instruction>,
pub parameters: Vec<Instruction>,
pub blocks: Vec<Block>,
}
Expand description
Data representation of a SPIR-V function.
Fields
def: Option<Instruction>
First (defining) instruction in this function.
end: Option<Instruction>
Last (ending) instruction in this function.
parameters: Vec<Instruction>
Function parameters.
blocks: Vec<Block>
Blocks in this function.
Implementations
Trait Implementations
Assembles the current object into the result
vector, reducing the need for lots of allocations
Disassembles the current object and returns the assembly code.
Auto Trait Implementations
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more