gfx icon indicating copy to clipboard operation
gfx copied to clipboard

Clearing integer formats in DX12 with weird values

Open kvark opened this issue 5 years ago • 0 comments

DX12 ClearRenderTargetView only works with floats. We have several choices:

  1. draw a full-screen quad. Requires an internal pipeline per target format combination
  2. force-enable UAV on integer textures and call ClearUnorderedAccessViewInt on it.

Required by Vulkan and WebGPU, see https://github.com/gpuweb/gpuweb/issues/1085

kvark avatar Oct 05 '20 19:10 kvark