-
Notifications
You must be signed in to change notification settings - Fork 952
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
Texture bindings with no sampler usage in WGSL should require float-unfilterable
, not float
, on derived bind group layouts
#6527
Comments
float-unfilterable
, not float
float-unfilterable
, not float
float-unfilterable
, not float
float-unfilterable
, not float
, on derived bind group layouts
From @jimblandy during our triage meeting todya: We might be able to use something like |
Downstream suffering: Firefox bug 1917099, Scthe/nanite-webgpu#6, Scthe/nanite-webgpu#4. |
Hi, author of nanite-webgpu (and frostbitten-hair-webgpu) here. This is probably my app's fault, I did what worked on Chrome and decided to wait for full webgpu support in Firefox release before fixing it. More info: Scthe/nanite-webgpu#4 (comment) . I don't know if what's done in my shader is permitted by wgsl spec. |
When a sampled texture binding is provided in WGSL, attempting to use the binding with a texture format that only accepts non-filterable floats (i.e.,
depth24plus
):JavaScript
Rust
// TODO: Will convert to Rust source code on request!
…errors with:
…but the WebGPU spec. states in the algorithm for default bind group layout1 in the section titled
Default pipeline layout
(section 10.1.1, step 4.9.2,Else
branch):We need to accept non-filterable floats in cases like these.
Footnotes
N.B. that WGPU calls default bind group layouts "derived bind group layouts". ↩
The text was updated successfully, but these errors were encountered: