Allow lets of textures and samplers#5389
Conversation
|
Previews, as seen when this build job started (c7a5176): |
mwyrzykowski
left a comment
There was a problem hiding this comment.
Using language extensions for non-HW features seems undesirable as it creates a shading language which is fragmented by feature support.
Is there any reason this needs to be a language extension?
There was a problem hiding this comment.
Removing my objection after discussion in the meeting.
It would be good that if we have at some point an official 'v2' WGSL version that all of these features are rolled-up in the v2 version and no longer reported to avoid this list from becoming increasingly long.
That is probably a separate topic however
minutes from WGSL committee meeting 2025-10-21
|
|
As @alan-baker noted in the 2025.10.21 meeting, we see WESL requests to allow conditional compilation to cover textures and samplers (we showed some bevy examples at the last F2F). Lets on textures and samplers is a nice step toward supporting those cases in WGSL. |
dneto0
left a comment
There was a problem hiding this comment.
LGTM, modulo bikeshedding the name (per committee discussion).
minutes from WGSL committee meeting 2025-10-28
|
3d56248 to
11bf024
Compare
Refs gpuweb#5339 * Add a language feature, `texture_and_sampler_let`, that allows the effective value type of a let to be a texture or sampler type
11bf024 to
c7a5176
Compare
Add support for the `texture_and_sampler_let` language feature. Spec PR: gpuweb/gpuweb#5389
The feature has landed in Dawn, just waiting for CTS and spec to land. Spec: gpuweb/gpuweb#5389 CTS: gpuweb/cts#4490 Fixed: 474082348 Change-Id: I4a1912b5878a7dcd5a9ad422544ccb654424fde0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7414637 Reviewed-by: Kai Ninomiya <[email protected]> Commit-Queue: dan sinclair <[email protected]> Auto-Submit: dan sinclair <[email protected]> Cr-Commit-Position: refs/heads/main@{#1567897}
Refs #5339
texture_and_sampler_let, that allows the effective value type of a let to be a texture or sampler type