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

pub struct ModuleHeader { /* fields omitted */ }

Memory representation of a SPIR-V module header.

Methods

impl ModuleHeader
[src]

Creates a new ModuleHeader instance.

Returns the major and minor version numbers as a tuple.

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

Returns the id bound.

Sets the id bound to the given bound.

Trait Implementations

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.

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 !=.