Crate wgsl_types

Crate wgsl_types 

Source
Expand description

§wgsl-types

Implementation of type-checking and constant evaluation of WGSL types.

The Type and Instance types provide type-checking and evaluation capabilities.

The crate is used by both wesl-rs and wgsl-analyzer, and developed conjointly by its authors.

Re-exports§

pub use inst::Instance;
pub use ty::Type;

Modules§

builtin
Implementation and type-checking of built-in functions, constructors and operators.
conv
Type conversion algorithms.
idents
Static strings of all WGSL predeclared identifiers.
inst
Instances of WGSL Types.
syntax
Basic representations of WGSL syntactic elements, such as enums, operators, and context-dependent names.
tplt
Built-in type-generator and function templates.
ty
WGSL Types.

Structs§

CallSignature
Function call signature.

Enums§

Error
The global error struct.
ShaderStage
Shader compilation stage.