Struct rspirv::mr::ModuleHeader
[−]
[src]
pub struct ModuleHeader { /* fields omitted */ }
Memory representation of a SPIR-V module header.
Methods
impl ModuleHeader
[src]
fn new(magic_number: Word,
version: Word,
generator: Word,
bound: Word,
reserved_word: Word)
-> ModuleHeader
version: Word,
generator: Word,
bound: Word,
reserved_word: Word)
-> ModuleHeader
Creates a new ModuleHeader
instance.
fn version(&self) -> (u8, u8)
Returns the major and minor version numbers as a tuple.
fn generator(&self) -> (&str, u16)
Returns the generator's name and version as a tuple.
fn bound(&self) -> Word
Returns the id bound.
fn set_bound(&mut self, bound: Word)
Sets the id bound to the given bound
.
Trait Implementations
impl Disassemble for ModuleHeader
[src]
fn disassemble(&self) -> String
Disassembles the current object and returns the assembly code.
impl Debug for ModuleHeader
[src]
impl PartialEq for ModuleHeader
[src]
fn eq(&self, __arg_0: &ModuleHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ModuleHeader) -> bool
This method tests for !=
.