wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

[meta] Constant evaluator built-in functions support

Open teoxoy opened this issue 2 years ago • 5 comments

  • [ ] bitcast: https://github.com/gfx-rs/wgpu/issues/7700
  • [ ] select
  • [ ] all
  • [ ] any
  • [ ] quantizeToF16

comparison

  • [x] abs: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] min: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] max: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] clamp
  • [x] saturate: https://github.com/gfx-rs/wgpu/pull/4879

trigonometry

  • [x] cos: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] cosh: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] sin: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] sinh: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] tan: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] tanh: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] acos: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] acosh: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] asin: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] asinh: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] atan: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] atanh: https://github.com/gfx-rs/wgpu/pull/4879
  • [ ] atan2
  • [x] radians: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] degrees: https://github.com/gfx-rs/wgpu/pull/5098

decomposition

  • [x] ceil: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] floor: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] round: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] fract: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] trunc: https://github.com/gfx-rs/wgpu/pull/5098
  • [ ] modf
  • [ ] frexp
  • [ ] ldexp

exponent

  • [x] exp: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] exp2: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] log: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] log2: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] pow

geometry

  • [ ] dot
  • [ ] cross
  • [ ] distance
  • [ ] length
  • [ ] normalize
  • [ ] faceForward
  • [ ] reflect
  • [ ] refract

computational

  • [x] sign: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] fma: https://github.com/gfx-rs/wgpu/pull/5098
  • [ ] mix
  • [x] step: https://github.com/gfx-rs/wgpu/pull/4879
  • [ ] smoothstep
  • [x] sqrt: https://github.com/gfx-rs/wgpu/pull/4879
  • [x] inverseSqrt: https://github.com/gfx-rs/wgpu/pull/5098
  • [ ] transpose
  • [ ] determinant

bits

  • [x] countTrailingZeros: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] countLeadingZeros: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] countOneBits: https://github.com/gfx-rs/wgpu/pull/5098
  • [x] reverseBits: https://github.com/gfx-rs/wgpu/pull/5098
  • [ ] extractBits
  • [ ] insertBits
  • [x] firstTrailingBit: https://github.com/gfx-rs/wgpu/pull/5101
  • [x] 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
  • [ ] unpack4xI8

teoxoy avatar Oct 05 '23 00:10 teoxoy

@teoxoy: I added links to #4879 for the relevant built-ins I'm adding there, but I'm not sure if this is what you want for this tracking issue. LMK if you want me to revert.

ErichDonGubler avatar Dec 22 '23 15:12 ErichDonGubler

Added links for #5098.

ErichDonGubler avatar Jan 19 '24 18:01 ErichDonGubler

Data packing and unpacking gained some new functions

Packing:

  • pack4xI8
  • pack4xI8

Unpacking:

  • unpack4xI8
  • unpack4xI8

VlaDexa avatar Mar 21 '24 18:03 VlaDexa

Added the following to this list as follow-up to #6445:

  • pack4xI8
  • pack4xU8
  • pack4xI8Clamp
  • pack4xU8Clamp

ErichDonGubler avatar Apr 15 '25 15:04 ErichDonGubler

Added bitcast at https://github.com/gfx-rs/wgpu/issues/7700.

ErichDonGubler avatar May 18 '25 20:05 ErichDonGubler