Struct rspirv::mr::Function
[−]
[src]
pub struct Function { pub def: Option<Instruction>, pub end: Option<Instruction>, pub parameters: Vec<Instruction>, pub basic_blocks: Vec<BasicBlock>, }
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.
basic_blocks: Vec<BasicBlock>
Basic blocks in this function.
Methods
impl Function
[src]
Trait Implementations
impl Assemble for Function
[src]
impl Disassemble for Function
[src]
fn disassemble(&self) -> String
[src]
Disassembles this module and returns the disassembly text.
This method will try to link information together to be wise. E.g., If the extended instruction set is recognized, the symbolic opcode for instructions in it will be shown.