Copyright © 2026 Unity Technologies
WebGPU: fix issue with setting a Texture2DArray as a render target with AllDepthSlices, only the first layer was cleared.
Steps to reproduce:
CommandBuffer cmd = new CommandBuffer(); RenderTargetIdentifier rtId = new RenderTargetIdentifier(arrayTexture, 0, CubemapFace.Unknown, RenderTargetIdentifier.AllDepthSlices); cmd.SetRenderTarget(rtId); cmd.ClearRenderTarget(false, true, clearColor * 0.5f); Graphics.ExecuteCommandBuffer(cmd); cmd.Release();
Actual results: Only the first array slice is cleared.
Expected results:
All array slices are cleared.
Reproducible with versions:
Not reproducible with versions:
Can’t test with versions:
Tested on (OS):
Notes:
Issues you vote on will appear here