Module naga::proc::constant_evaluator
source ยท Macrosยง
- __
with_ ๐dollar_ sign - __
with_ ๐dollar_ sign - __
with_ ๐dollar_ sign - __
with_ ๐dollar_ sign - A convenience macro for using the same RHS for each
ConcreteInt
variant in a call tocomponent_wise_concrete_int
. - component_
wise_ ๐float A convenience macro for using the same RHS for eachFloat
variant in a call tocomponent_wise_float
. - A convenience macro for using the same RHS for each
Scalar
variant in a call tocomponent_wise_scalar
. - A convenience macro for using the same RHS for each
Signed
variant in a call tocomponent_wise_signed
. - with_
dollar_ ๐sign A macro that allows dollar signs ($
) to be emitted by other macros. Useful for generatingmacro_rules!
items that, in turn, emit their ownmacro_rules!
items.
Structsยง
- A context for evaluating constant expressions.
- Function
Local ๐Data
Enumsยง
- Behavior ๐
- Concrete
Int ๐A subset ofLiteral
s intended to be used for implementing numeric built-ins. - Float ๐A subset of
Literal
s intended to be used for implementing numeric built-ins. - Glsl
Restrictions ๐ - Scalar ๐A subset of
Literal
s intended to be used for implementing numeric built-ins. - Signed ๐A subset of
Literal
s intended to be used for implementing numeric built-ins. - Wgsl
Restrictions ๐
Traitsยง
- TryFrom
Abstract ๐Trait for conversions of abstract values to concrete types.
Functionsยง
- Attempts to evaluate multiple
exprs
as a combinedConcreteInt
to pass tohandler
. Ifexprs
are vectors of the same length,handler
is called for each corresponding component of each vector. - component_
wise_ ๐float Attempts to evaluate multipleexprs
as a combinedFloat
to pass tohandler
. Ifexprs
are vectors of the same length,handler
is called for each corresponding component of each vector. - Attempts to evaluate multiple
exprs
as a combinedScalar
to pass tohandler
. Ifexprs
are vectors of the same length,handler
is called for each corresponding component of each vector. - Attempts to evaluate multiple
exprs
as a combinedSigned
to pass tohandler
. Ifexprs
are vectors of the same length,handler
is called for each corresponding component of each vector. - first_
leading_ ๐bit - first_
trailing_ ๐bit