Spec allows resolveTarget to be 3d but doesn't allow selecting a depth slice #4600
Labels
api resolved
Resolved - waiting for a change to the API specification
api
WebGPU API
bug
needs-cts-issue
This change requires tests (or would need tests if accepted), but may not have a CTS issue filed yet
Milestone
In #4254 we allowed
view
to be 3d and addeddepthSlice
to select which slice ofview
to render to.However the change to allow 3d views in the "renderable texture views" algorithm also applies to
resolveTarget
. So the spec now saysresolveTarget
can be 3d, but there is no way to select a depth slice of it.3d textures cannot be multisampled, but there is one scenario in which this matters:
view
is 2d multisampled, andresolveTarget
is 3d. I do not know if this is actually possible, but the spec seems to allow it.There are several options here depending on what the backends can support:
resolveTarget
from being 3dview
andresolveTarget
to have the same dimensionality, then this scenario doesn't workresolveTargetDepthSlice
cc @haoxli
The text was updated successfully, but these errors were encountered: