Skip to content
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

support enable clip_distances extension #6236

Open
EriKWDev opened this issue Sep 8, 2024 · 0 comments
Open

support enable clip_distances extension #6236

EriKWDev opened this issue Sep 8, 2024 · 0 comments
Labels
area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator type: enhancement New feature or request

Comments

@EriKWDev
Copy link

EriKWDev commented Sep 8, 2024

Is your feature request related to a problem? Please describe.
I have implemented planar reflections in our engine which would benefit from HW clipping plane support but I currently have to use fragment-shader discard instead. Being able to set the @builtin(clip-distances) output of the vertex shader would fit this perfectly and hopefully be more performant

Describe the solution you'd like
support the clip_distances extension per https://gpuweb.github.io/gpuweb/#dom-gpufeaturename-clip-distances

Describe alternatives you've considered
Not supporting clip_distances, making me sad

Additional context
It seems to my understanding that parsing of the enable directive got mangled up with the implementation of f16 even though there are other extensions that could perhaps be worked on as well:

implementing enable and fp16: #5701
clip-distances discussion for spec: gpuweb/gpuweb#4588
enable directive issue: #5476

@teoxoy teoxoy added type: enhancement New feature or request naga Shader Translator area: naga front-end lang: WGSL WebGPU Shading Language labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator type: enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants