Struct rspirv::mr::Loader
[−]
[src]
pub struct Loader { /* fields omitted */ }
The memory representation loader.
Constructs a Module
from the module header and
instructions.
Methods
impl Loader
[src]
fn new() -> Loader
Creates a new empty loader.
fn module(self) -> Module
Returns the Module
under construction.
Trait Implementations
impl Consumer for Loader
[src]
fn initialize(&mut self) -> ParseAction
Intialize the consumer.
fn finalize(&mut self) -> ParseAction
Finalize the consumer.
fn consume_header(&mut self, header: ModuleHeader) -> ParseAction
Consume the module header.
fn consume_instruction(&mut self, inst: Instruction) -> ParseAction
Consume the given instruction.