Module constant_evaluator

Source

Macrosยง

__with_dollar_sign ๐Ÿ”’
__with_dollar_sign ๐Ÿ”’
__with_dollar_sign ๐Ÿ”’
__with_dollar_sign ๐Ÿ”’
component_wise_concrete_int ๐Ÿ”’
A convenience macro for using the same RHS for each ConcreteInt variant in a call to component_wise_concrete_int.
component_wise_float ๐Ÿ”’
A convenience macro for using the same RHS for each Float variant in a call to component_wise_float.
component_wise_scalar ๐Ÿ”’
A convenience macro for using the same RHS for each Scalar variant in a call to component_wise_scalar.
component_wise_signed ๐Ÿ”’
A convenience macro for using the same RHS for each Signed variant in a call to component_wise_signed.
gen_component_wise_extractor ๐Ÿ”’
with_dollar_sign ๐Ÿ”’
A macro that allows dollar signs ($) to be emitted by other macros. Useful for generating macro_rules! items that, in turn, emit their own macro_rules! items.

Structsยง

ConstantEvaluator
A context for evaluating constant expressions.
ExpressionKindTracker
FunctionLocalData ๐Ÿ”’

Enumsยง

Behavior ๐Ÿ”’
ConcreteInt ๐Ÿ”’
A subset of Literals intended to be used for implementing numeric built-ins.
ConstantEvaluatorError
ExpressionKind
Float ๐Ÿ”’
A subset of Literals intended to be used for implementing numeric built-ins.
GlslRestrictions ๐Ÿ”’
Scalar ๐Ÿ”’
A subset of Literals intended to be used for implementing numeric built-ins.
Signed ๐Ÿ”’
A subset of Literals intended to be used for implementing numeric built-ins.
WgslRestrictions ๐Ÿ”’

Traitsยง

TryFromAbstract ๐Ÿ”’
Trait for conversions of abstract values to concrete types.

Functionsยง

component_wise_concrete_int ๐Ÿ”’
Attempts to evaluate multiple exprs as a combined ConcreteInt to pass to handler. If exprs 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 combined Float to pass to handler. If exprs are vectors of the same length, handler is called for each corresponding component of each vector.
component_wise_scalar ๐Ÿ”’
Attempts to evaluate multiple exprs as a combined Scalar to pass to handler. If exprs are vectors of the same length, handler is called for each corresponding component of each vector.
component_wise_signed ๐Ÿ”’
Attempts to evaluate multiple exprs as a combined Signed to pass to handler. If exprs are vectors of the same length, handler is called for each corresponding component of each vector.
cross_product ๐Ÿ”’
first_leading_bit ๐Ÿ”’
first_trailing_bit ๐Ÿ”’