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

First (defining) instruction in this function.

Last (ending) instruction in this function.

Function parameters.

Basic blocks in this function.

Methods

impl Function
[src]

Creates a new empty Function instance.

Trait Implementations

impl Assemble for Function
[src]

Assembles the current object and returns the binary code.

impl Disassemble for Function
[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.

impl Debug for Function
[src]

Formats the value using the given formatter. Read more

impl Default for Function
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Function

impl Sync for Function