upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/main.cpp
diff options
context:
space:
mode:
authorsanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 10:58:38 +0530
committersanuk369 <224479491+quackottu@users.noreply.github.com>2026-11-22 10:58:38 +0530
commit2c17fac1d893e0d0ab85fa0762ba989893bd1d37 (patch)
treedd1800f2c7e8c9c5964a8a69299c9d61040a0df5 /runtime/src/main.cpp
parent067d3e8b97189fcf272dc699fdbb871eae496660 (diff)
Replay: a buffer UAV clear writes its resource's range of a shared VkBuffer
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.
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions