-
Notifications
You must be signed in to change notification settings - Fork 36
Description
WebGPU does not support blending on 32-bits per channel RGBA floating point textures, see the chart https://gpuweb.github.io/gpuweb/#plain-color-formats :

However it appears Nanite is attempting to do so: https://github.com/Scthe/nanite-webgpu/blob/a562d80df3da237034bee62d97d87bce0db04967/src/constants.ts#L50C1-L51C1
This is causing a validation error opening https://scthe.github.io/nanite-webgpu/?scene_file=jinxCombined&impostors_threshold=4000&softwarerasterizer_threshold=1360&nanite_errorthreshold=0.1 in Safari / WebKit.
WebKit has one other bug, fixed by https://bugs.webkit.org/show_bug.cgi?id=279266, but with that fix and working around the rgba32float blending issue described here, it appears the nanite demo works in Safari WebKit as well, at least on macOS: