You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to report an issue about clearing the color attachments with unsigned integer formats in WebGPU in a render pass. When we use a negative value in the loadValue for the color attachments in unsigned integer formats, we will see different behaviors on D3D12 and Metal. According to my experiments, on D3D12 this value will always be treated as 0, but on Metal it won't.
Note that on Vulkan we can always set the correct clear color with the union members of VkClearColor for float, signed integer and unsigned integer formats, so it is not a problem for Vulkan.
So it seems we need some validations on the loadValue to ensure we have the same definite behavior on D3D12, Metal and Vulkan. What do you think?