Module spirv

Source
Expand description

Utilities for loading SPIR-V module data.

Constantsยง

SPIRV_MAGIC_NUMBER ๐Ÿ”’

Functionsยง

assert_has_spirv_magic_number_and_length ๐Ÿ”’
Check whether the byte slice has the SPIR-V magic number (in either byte order) and of an appropriate size, and panic with a suitable message when it is not.
make_spirv_raw
Version of [make_spirv()] intended for use with Device::create_shader_module_passthrough().