Loading...
Searching...
No Matches
score::gfx::BufferCopyRegion Struct Reference
Region-based GPU buffer copy for strided / gather patterns. More...
Detailed Description
Region-based GPU buffer copy for strided / gather patterns.
One src buffer → one dst buffer, with count distinct {srcOffset, dstOffset, size} regions. Emits ONE pre-barrier and ONE post-barrier for the whole batch on backends that need them (Vulkan), then issues the minimum native work:
- Vulkan : single vkCmdCopyBuffer call with
countregions - OpenGL : N glCopyBufferSubData (bindings reused)
- D3D12 : N CopyBufferRegion (no per-call barriers needed)
- D3D11 : N CopySubresourceRegion
- Metal : N copyFromBuffer within one MTLBlitCommandEncoder
Replaces what would otherwise be N copyBuffer() calls (each with its own barrier pair) for strided source layouts — the std430-vec3-padded-to-vec4 case in particular. Must be called inside beginExternal()/endExternal() like copyBuffer().
Public Attributes | |
| int | src_offset {} |
| int | dst_offset {} |
| int | size {} |
The documentation for this struct was generated from the following file: