Struct rspirv::mr::ModuleHeader[][src]

pub struct ModuleHeader {
    pub magic_number: Word,
    pub version: Word,
    pub generator: Word,
    pub bound: Word,
    pub reserved_word: Word,
}

Data representation of a SPIR-V module header.

Fields

Methods

impl ModuleHeader
[src]

Creates a new ModuleHeader instance.

Sets the SPIR-V version to the given major.minor version.

Returns the major and minor version numbers as a tuple.

Returns the generator's name and version as a tuple.

Trait Implementations

impl Assemble for ModuleHeader
[src]

Assembles the current object and returns the binary code.

impl Disassemble for ModuleHeader
[src]

Disassembles the current object and returns the assembly code.

impl Debug for ModuleHeader
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ModuleHeader
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations