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::InvalidHeaderif the SPIRV header is not validError::InvalidOpif the binary representation of any instruction inwordsis not validError::InvalidIdif any type declaration in the SPIRV module reference non-existent IDsError::StringFormatif anyOpCodecontains a String with invalid UTF-8 charactersError::Otherif any other errors occur
Returns the Type definition indicated by type_id, or None if type_id is not a type.
Returns all uniform variables declared in the given SPIR-V module.
Returns all push-constant variables declared in the given SPIR-V module.