upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_command_objects.md
diff options
context:
space:
mode:
authorRyx <118130241+Ryx69@users.noreply.github.com>2026-11-21 20:33:34 +0100
committerRyx <118130241+Ryx69@users.noreply.github.com>2026-11-21 20:33:34 +0100
commit99336386d1bd1630057d21d0faa8261c1b5b63e0 (patch)
tree5c14105aebbe4bc76d508ef95900a976f8efe014 /docs/d3d12_command_objects.md
parent40f6399088422ef4088526b6202934e60c762991 (diff)
Runtime: D3D12 copies on Vulkan (buffers, textures, uploads, BC) and GetCopyableFootprints
- IR: CopyBufferRegion, CopyTextureRegion (subresource or placed footprint, optional box) and CopyResource, with D3D12's call rules (512-byte footprint offsets, 256-byte pitches, non-empty boxes). - Replay: vkCmdCopyBuffer / CopyBufferToImage / CopyImageToBuffer / CopyImage. Footprint pitch becomes bufferRowLength; BC extents stop at the mip edge; every range and buffer bound is checked before anything is written. Copies run in TRANSFER_SRC/DST, or in place in GENERAL for a COMMON texture (implicit promotion). 2D only. - Device: buffers expose their VkBuffer; BC1-7 formats; textureCompressionBC enabled when present; GetCopyableFootprints for buffers and 2D textures. Compared with the PC runtime over 13 descriptions, which showed planar depth-stencil rows are padded to 512 bytes. - Each submission ends with a barrier to the host so readback buffers hold the GPU's writes after the fence wait. BC textures are not zero-filled on first use (Vulkan cannot clear them; the validation layer caught the first try). Tests: d3d12_vulkan_device_test now reads results back through D3D12 (CopyTextureRegion into a readback heap, Map) and adds an upload list: a pattern into a texture, CopyResource into a COMMON texture, a boxed copy, a BC1 round trip and CopyBufferRegion. command_list_test covers the copy rules. All GPU tests are clean under the Khronos validation layer; 6/6 ctest.
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions