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