/// Creates a new `ModuleHeader` instance.
Creates a new `ModuleHeader` instance.
Creates a new ` ModuleHeader ` instance .
pub fn new(bound: Word) -> ModuleHeader {
        ModuleHeader {
            magic_number: spirv::MAGIC_NUMBER,
            version: version::create_word_from_version(spirv::MAJOR_VERSION, spirv::MINOR_VERSION),
            generator: 0x000f_0000, // TODO: lower 16-bit: tool version number
            bound,
            reserved_word: 0,
        }
    }
pub fn new ( bound : Word ) -> ModuleHeader { ModuleHeader { magic_number : spirv :: MAGIC_NUMBER , version : version :: create_word_from_version ( spirv :: MAJOR_VERSION , spirv :: MINOR_VERSION ) , generator : 0x000f_0000 , // TODO: lower 16-bit: tool version number bound , reserved_word : 0 , } }
Creates a new `ModuleHeader` instance.
Creates a new ` ModuleHeader ` instance .
bound
Word