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]
impl Function
Trait Implementations
impl Assemble for Function
[src]
impl Assemble for Function
impl Disassemble for Function
[src]
impl Disassemble for Function
fn disassemble(&self) -> String
[src]
fn disassemble(&self) -> String
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.
impl Debug for Function
[src]
impl Debug for Function
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Function
[src]
impl Default for Function