[meta] Constant evaluator built-in functions support
Author: teoxoyCreated Oct 5, 2023Updated Sep 18, 2026
Labelsnagaarea: naga front-endlang: GLSLlang: WGSLarea: naga processing
-
bitcast: https://github.com/gfx-rs/wgpu/issues/7700 -
select: #7572 (v26) -
all: #7166 (v25) -
any: #7166 (v25) -
quantizeToF16
comparison
-
abs: https://github.com/gfx-rs/wgpu/pull/4879 -
min: https://github.com/gfx-rs/wgpu/pull/5098 -
max: https://github.com/gfx-rs/wgpu/pull/5098 -
clamp -
saturate: https://github.com/gfx-rs/wgpu/pull/4879
trigonometry
-
cos: https://github.com/gfx-rs/wgpu/pull/4879 -
cosh: https://github.com/gfx-rs/wgpu/pull/4879 -
sin: https://github.com/gfx-rs/wgpu/pull/4879 -
sinh: https://github.com/gfx-rs/wgpu/pull/4879 -
tan: https://github.com/gfx-rs/wgpu/pull/4879 -
tanh: https://github.com/gfx-rs/wgpu/pull/4879 -
acos: https://github.com/gfx-rs/wgpu/pull/4879 -
acosh: https://github.com/gfx-rs/wgpu/pull/4879 -
asin: https://github.com/gfx-rs/wgpu/pull/4879 -
asinh: https://github.com/gfx-rs/wgpu/pull/4879 -
atan: https://github.com/gfx-rs/wgpu/pull/4879 -
atanh: https://github.com/gfx-rs/wgpu/pull/4879 -
atan2: #8222 (v27) -
radians: https://github.com/gfx-rs/wgpu/pull/5098 -
degrees: https://github.com/gfx-rs/wgpu/pull/5098
decomposition
-
ceil: https://github.com/gfx-rs/wgpu/pull/5098 -
floor: https://github.com/gfx-rs/wgpu/pull/5098 -
round: https://github.com/gfx-rs/wgpu/pull/4879 -
fract: https://github.com/gfx-rs/wgpu/pull/5098 -
trunc: https://github.com/gfx-rs/wgpu/pull/5098 -
modf -
frexp(used by CTS tests for other builtins, e.g.sign, as noted in #8942) -
ldexp
exponent
-
exp: https://github.com/gfx-rs/wgpu/pull/5098 -
exp2: https://github.com/gfx-rs/wgpu/pull/5098 -
log: https://github.com/gfx-rs/wgpu/pull/5098 -
log2: https://github.com/gfx-rs/wgpu/pull/5098 -
pow
geometry
-
dot: #8223 (v28) -
dot4I8Packed: #7494 (v26) -
dot4U8Packed: #7494 (v26) -
cross: #7404 (v25) -
distance: #8223 (v28) -
length: #8223 (v28) -
normalize: #8223 (v28) -
faceForward: #10258 -
reflect: #10258 -
refract: #10258
computational
-
sign: https://github.com/gfx-rs/wgpu/pull/5098 -
fma: https://github.com/gfx-rs/wgpu/pull/5098 -
mix -
step: https://github.com/gfx-rs/wgpu/pull/4879 -
smoothstep -
sqrt: https://github.com/gfx-rs/wgpu/pull/4879 -
inverseSqrt: https://github.com/gfx-rs/wgpu/pull/5098 -
transpose -
determinant
bits
-
countTrailingZeros: https://github.com/gfx-rs/wgpu/pull/5098 -
countLeadingZeros: https://github.com/gfx-rs/wgpu/pull/5098 -
countOneBits: https://github.com/gfx-rs/wgpu/pull/5098 -
reverseBits: https://github.com/gfx-rs/wgpu/pull/5098 -
extractBits: #10258 -
insertBits: #10258 -
firstTrailingBit: https://github.com/gfx-rs/wgpu/pull/5101 -
firstLeadingBit: https://github.com/gfx-rs/wgpu/pull/5101
data packing
-
pack4x8snorm -
pack4x8unorm -
pack2x16snorm -
pack2x16unorm -
pack2x16float -
pack4xI8 -
pack4xU8 -
pack4xI8Clamp -
pack4xU8Clamp
data unpacking
-
unpack4x8snorm -
unpack4x8unorm -
unpack2x16snorm -
unpack2x16unorm -
unpack2x16float -
unpack4xI8 -
unpack4xU8
wgpu extensions (consider making a separate meta issue for this group if it grows)
- #8972
Source: gfx-rs/wgpu