\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
- Since
- 6.13
Describes a buffer-to-buffer copy operation.
A size() of 0 indicates that the entire source buffer is to be copied. A default constructed copy description therefore leads to copying the whole of the source buffer to the beginning of the destination buffer.
- Note
- The copied region must fit both the source and the destination buffer. When it does not, QRhiResourceUpdateBatch::copyBuffer() prints a warning and drops the operation.
-
size(), sourceOffset(), and destinationOffset() should all be multiples of 4. This is a requirement of the blit encoder in Metal, and it applies on macOS on Intel-based devices. Other platforms and 3D APIs, including Metal on Apple Silicon and on iOS, have no such restriction, but portable code has to assume the strictest of these. Note that a size() of 0 implies the full size of the source buffer, which is not necessarily a multiple of 4 either.
-
This is a RHI API with limited compatibility guarantees, see \l QRhi for details.
- See also
- QRhiResourceUpdateBatch::copyBuffer()
Definition at line 748 of file qrhi.h.