gfx
gfx copied to clipboard
Clearing integer formats in DX12 with weird values
DX12 ClearRenderTargetView only works with floats. We have several choices:
- draw a full-screen quad. Requires an internal pipeline per target format combination
- force-enable UAV on integer textures and call
ClearUnorderedAccessViewInton it.
Required by Vulkan and WebGPU, see https://github.com/gpuweb/gpuweb/issues/1085