Expand description
Module
processing functionality.
Re-exportsΒ§
pub use index::BoundsCheckPolicies;
pub use index::BoundsCheckPolicy;
pub use index::IndexableLength;
pub use index::IndexableLengthError;
ModulesΒ§
- constant_
evaluator π - emitter π
- index
- Definitions for index bounds checking.
- keyword_
set π - layouter π
- namer π
- overloads π
- Overload resolution for builtin functions.
- terminator π
- type_
methods π - Methods on
TypeInner
,Scalar
, andScalarKind
. - typifier π
StructsΒ§
- Alignment
- A newtype struct where its only valid values are powers of 2
- Case
Insensitive Keyword Set - A case-insensitive, ASCII-only set of strings,
for use with
Namer
to avoid collisions with keywords and other reserved identifiers. - Constant
Evaluator - A context for evaluating constant expressions.
- Emitter
- Helper class to emit expressions
- Expression
Kind Tracker - Global
Ctx - Keyword
Set - A case-sensitive set of strings,
for use with
Namer
to avoid collisions with keywords and other reserved identifiers. - Layout
Error - Layouter
- Helper processor that derives the sizes of all types.
- Missing
Special Type - Namer
- This processor assigns names to all the things in a module that may need identifiers in a textual backend.
- Resolve
Context - Rule
- A single type rule.
- Type
Layout - Size and alignment information for a type.
EnumsΒ§
- Conclusion
- The result type of a
Rule
. - Constant
Evaluator Error - Expression
Kind - External
Texture Name Key - A component of a lowered external texture.
- Hashable
Literal - Layout
Error Inner - Errors generated by the
Layouter
. - NameKey
- Resolve
Array Size Error - Resolve
Error - Type
Resolution - The result of computing an expressionβs type.
- U32Eval
Error π
TraitsΒ§
- Overload
Set - A trait for types representing of a set of Naga IR type rules.
FunctionsΒ§
- compare_
types - Compare two types.
- ensure_
block_ returns - Ensure that the given block has return statements at the end of its control flow.
- flatten_
compose - Return an iterator over the individual components assembled by a
Compose
expression. - min_
max_ float_ representable_ by - Returns a tuple of
crate::Literal
s representing the minimum and maximum float values exactly representable by the provided float and integer types. Panics iffloat
is not one ofF16
,F32
, orF64
, orint
is not one ofI32
,U32
,I64
, orU64
.