Skip to content

[meta] Constant evaluator built-in functions support #4507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
40 of 79 tasks
teoxoy opened this issue Oct 5, 2023 · 5 comments
Open
40 of 79 tasks

[meta] Constant evaluator built-in functions support #4507

teoxoy opened this issue Oct 5, 2023 · 5 comments
Labels
area: naga front-end area: naga processing Passes over IR in the middle lang: GLSL OpenGL Shading Language lang: WGSL WebGPU Shading Language naga Shader Translator

Comments

@teoxoy
Copy link
Member

teoxoy commented Oct 5, 2023

comparison

trigonometry

decomposition

exponent

geometry

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

computational

bits

data packing

  • pack4x8snorm
  • pack4x8unorm
  • pack2x16snorm
  • pack2x16unorm
  • pack2x16float
  • pack4xI8
  • pack4xU8
  • pack4xI8Clamp
  • pack4xU8Clamp

data unpacking

  • unpack4x8snorm
  • unpack4x8unorm
  • unpack2x16snorm
  • unpack2x16unorm
  • unpack2x16float
  • unpack4xI8
  • unpack4xI8
@teoxoy teoxoy added lang: WGSL WebGPU Shading Language area: naga front-end lang: GLSL OpenGL Shading Language area: naga processing Passes over IR in the middle labels Oct 5, 2023
@cwfitzgerald cwfitzgerald transferred this issue from gfx-rs/naga Oct 25, 2023
@cwfitzgerald cwfitzgerald added the naga Shader Translator label Oct 25, 2023
@teoxoy teoxoy added this to the WebGPU Specification V1 milestone Nov 3, 2023
@ErichDonGubler

This comment was marked as resolved.

@ErichDonGubler

This comment was marked as resolved.

@VlaDexa
Copy link
Contributor

VlaDexa commented Mar 21, 2024

Data packing and unpacking gained some new functions

Packing:

  • pack4xI8
  • pack4xI8

Unpacking:

  • unpack4xI8
  • unpack4xI8

@ErichDonGubler
Copy link
Member

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

  • pack4xI8
  • pack4xU8
  • pack4xI8Clamp
  • pack4xU8Clamp

@ErichDonGubler
Copy link
Member

Added bitcast at #7700.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga front-end area: naga processing Passes over IR in the middle lang: GLSL OpenGL Shading Language lang: WGSL WebGPU Shading Language naga Shader Translator
Projects
Status: In Progress
Development

No branches or pull requests

4 participants