support enable clip_distances
extension
#6236
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: enhancement
New feature or request
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 performantDescribe the solution you'd like
support the
clip_distances
extension per https://gpuweb.github.io/gpuweb/#dom-gpufeaturename-clip-distancesDescribe alternatives you've considered
Not supporting
clip_distances
, making me sadAdditional 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
andfp16
: #5701clip-distances
discussion for spec: gpuweb/gpuweb#4588enable directive issue: #5476
To do:
The text was updated successfully, but these errors were encountered: