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 each
Float
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.
- FunctionLocalData ๐
Enumsยง
- Behavior ๐
- ConcreteInt ๐A subset of
Literal
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. - GlslRestrictions ๐
- 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. - WgslRestrictions ๐
Traitsยง
- TryFromAbstract ๐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 multiple
exprs
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 ๐