|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Byte layout of texel rows in buffer or host memory for copy operations. More...
#include "donner/gpu/Descriptors.h"
Byte layout of texel rows in buffer or host memory for copy operations.
bytesPerRow must be a multiple of donner::gpu::kTexelRowPitchAlignment (256): that is the strictest row-pitch alignment across the native APIs this runtime targets, so enforcing it uniformly keeps recorded copies portable to every backend without repacking. For the same portability reason, offsetBytes must be aligned to the copied format's texel size.
| uint32_t donner::gpu::TexelCopyBufferLayout::bytesPerRow = 0 |
Bytes between row starts. Must be 256-aligned and cover a row.
| uint64_t donner::gpu::TexelCopyBufferLayout::offsetBytes = 0 |
Byte offset of the first texel row. Must be texel-size aligned.
| uint32_t donner::gpu::TexelCopyBufferLayout::rowsPerImage = 0 |
Rows allotted to the image. Must cover the copy height.