Struct rspirv::dr::ModuleHeader [−][src]
pub struct ModuleHeader {
pub magic_number: Word,
pub version: Word,
pub generator: Word,
pub bound: Word,
pub reserved_word: Word,
}
Expand description
Data representation of a SPIR-V module header.
Fields
magic_number: Word
version: Word
generator: Word
bound: Word
reserved_word: Word
Implementations
Creates a new ModuleHeader
instance.
Sets the SPIR-V version to the given major.minor version.
Trait Implementations
Assembles the current object into the result
vector, reducing the need for lots of allocations
Disassembles the current object and returns the assembly code.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ModuleHeader
impl Send for ModuleHeader
impl Sync for ModuleHeader
impl Unpin for ModuleHeader
impl UnwindSafe for ModuleHeader
Blanket Implementations
Mutably borrows from an owned value. Read more