ClearUnorderedAccess previously decoded encoded bytes into p.binding.format and cleared whole views via vkCmdClearColorImage, which corrupted non-float values (such as R16G16_UNORM 1.0 = 0xffff or R32_UINT sNaN bits) on SFLOAT-backed typeless textures. When view_format differs from p.binding.format and supports COLOR_ATTACHMENT, decode in view_format and clear through an attachment view of view_format (preserving the R32_UINT path for emulated R9G9B9E5_SHAREDEXP). Adds replay and GPU readback tests.
prepare_buffer_uav_clear gave vkCmdFillBuffer/UpdateBuffer/CopyBuffer the
view's offset, which is relative to the resource, without the binding's
buffer_offset. ResourceBinding documents that a buffer may be a range of a
larger VkBuffer (the GPU address arena holds many), and copies, atomic
copies and buffer_at already add it; a clear of such a resource wrote from
the start of the VkBuffer, over whatever lives there. Latent on main (the
device binds buffer_offset 0), live once buffers sit in the arena.
The offset is added after the D3D12 alignment check (relative to the view)
and before the transfer alignment, which needs the absolute offset.
replay_uav_clear_offset_test checks raw, R8, RGBA32 and rectangle clears
with fake transfer functions; no GPU.