-
Notifications
You must be signed in to change notification settings - Fork 329
Open
Labels
apiWebGPU APIWebGPU APIfeature requestA request for a new GPU feature exposed in the APIA request for a new GPU feature exposed in the API
Milestone
Description
During the last F2F, the idea of exposing reflection information came up. There are a few different use cases:
- Something like Shadertoy, where the JS might not know the content of the shaders it's ingesting. (Shadertoy specifically solves this by requiring a particular interface to every shader, but it's not unrealistic to imagine there are places which wouldn't have this requirement.)
- During the last F2F, the D3D team indicates that many AAA games create giant shaders with tons of unused inputs/outputs, and then ask the shader compiler which inputs/outputs are actually used, so they can hook up only those resources.
- Could be used to solve the concerns in [wgsl] Offset decorations on Structs #561
As far as I know, all the native APIs provide some sort of shader reflection information.
(There's no "API" GitHub tag, so I don't know how to tag this issue as both "relevant to WGSL" but also "relevant to the API")
mehmetoguzderin, aedm, 7ombie and mvaligursky
Metadata
Metadata
Assignees
Labels
apiWebGPU APIWebGPU APIfeature requestA request for a new GPU feature exposed in the APIA request for a new GPU feature exposed in the API