Struct spirv_layout::Module
source · [−]pub struct Module { /* private fields */ }
Expand description
Stores the reflection info of a single SPIRV module.
Implementations
Generates reflection info from a given stream of words
.
Errors
Error::InvalidHeader
if the SPIRV header is not validError::InvalidOp
if the binary representation of any instruction inwords
is not validError::InvalidId
if any type declaration in the SPIRV module reference non-existent IDsError::StringFormat
if anyOpCode
contains a String with invalid UTF-8 charactersError::Other
if any other errors occur
Returns the Type
definition indicated by type_id
, or None
if type_id
is not a type.
Returns the EntryPoint
definitions contained in the given SPIR-V module
Returns the size of a given StructMember
, if known.
Returns the size of a given UniformVariable
, PushConstantVariable
or LocationVariable
, if known.