Skip to content

Add feature for filterable *32float textures#3828

Merged
kainino0x merged 2 commits intogpuweb:mainfrom
kainino0x:float32-filterable
Mar 2, 2023
Merged

Add feature for filterable *32float textures#3828
kainino0x merged 2 commits intogpuweb:mainfrom
kainino0x:float32-filterable

Conversation

@kainino0x
Copy link
Copy Markdown
Contributor

@kainino0x kainino0x commented Feb 15, 2023

Fixes #3601

Tacit resolution queue since we hadn't chosen a name for the feature until now.

@kainino0x kainino0x added the tacit resolution queue Editors have agreed and intend to land if no feedback is given label Feb 15, 2023
@kainino0x kainino0x added this to the V1.0 milestone Feb 15, 2023
@kainino0x kainino0x requested a review from toji February 15, 2023 17:08
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 15, 2023

Previews, as seen when this build job started (823235a):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@teoxoy
Copy link
Copy Markdown
Member

teoxoy commented Feb 15, 2023

We currently have this line in the spec:

Only formats with GPUTextureSampleType "float" can be blended.

I think we either need a separate column for blending or decide if we should also require blending (see #3556 (comment) for a complete picture).

@kainino0x
Copy link
Copy Markdown
Contributor Author

Thank you for catching that, I forgot we wrote that. I'll fix this for now but we should talk about whether to combine the two features.

@kainino0x
Copy link
Copy Markdown
Contributor Author

Commented over in #3556 (comment), I don't think we can combine them.

kainino0x added a commit to kainino0x/gpuweb that referenced this pull request Feb 16, 2023
Previously this was just "filterable && renderable" but that's kind of
buried and prone to getting updated incorrectly.
Confirmed in gpuweb#3566 that rg11b10ufloat is always blendable when it's
renderable.

This change is in service of gpuweb#3828 which will add cases for which
"filterable && renderable" isn't true.
@kainino0x kainino0x marked this pull request as draft February 16, 2023 21:06
kainino0x added a commit that referenced this pull request Feb 16, 2023
Previously this was just "filterable && renderable" but that's kind of
buried and prone to getting updated incorrectly.
Confirmed in #3566 that rg11b10ufloat is always blendable when it's
renderable.

This change is in service of #3828 which will add cases for which
"filterable && renderable" isn't true.
@kainino0x kainino0x marked this pull request as ready for review February 16, 2023 21:10
@kdashg
Copy link
Copy Markdown
Contributor

kdashg commented Feb 28, 2023

GPU Web F2F 2023-02-16/17
  • Add feature for filterable *32float textures #3828
    • Not always filterable even though renderable.
    • Bikeshed on the name? float32filterable?
    • MM: any "filterable" in existing extensions?
    • KN: no, but have "renderable" etc.
    • KG: putting a warning at the top? "This isn't blendable?"
    • KN: just added a "blendable" column at the top.

@kainino0x
Copy link
Copy Markdown
Contributor Author

review ping @toji

Copy link
Copy Markdown
Member

@toji toji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the slow review. Thought I had already approved this one.

LGTM!

@kainino0x kainino0x merged commit 439c7d1 into gpuweb:main Mar 2, 2023
@kainino0x kainino0x removed the tacit resolution queue Editors have agreed and intend to land if no feedback is given label Mar 2, 2023
@kainino0x kainino0x deleted the float32-filterable branch March 2, 2023 18:13
@kainino0x kainino0x added the needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet label Apr 18, 2023
juj added a commit to juj/wasm_webgpu that referenced this pull request Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-cts-issue This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optional feature request: filterable 32-bit float textures

4 participants