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.
Loading...
Searching...
No Matches
donner::gpu::TexelCopyBufferLayout Struct Reference

Byte layout of texel rows in buffer or host memory for copy operations. More...

#include "donner/gpu/Descriptors.h"

Public Attributes

uint64_t offsetBytes = 0
 Byte offset of the first texel row. Must be texel-size aligned.
uint32_t bytesPerRow = 0
 Bytes between row starts. Must be 256-aligned and cover a row.
uint32_t rowsPerImage = 0
 Rows allotted to the image. Must cover the copy height.

Detailed Description

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.

Member Data Documentation

◆ bytesPerRow

uint32_t donner::gpu::TexelCopyBufferLayout::bytesPerRow = 0

Bytes between row starts. Must be 256-aligned and cover a row.

◆ offsetBytes

uint64_t donner::gpu::TexelCopyBufferLayout::offsetBytes = 0

Byte offset of the first texel row. Must be texel-size aligned.

◆ rowsPerImage

uint32_t donner::gpu::TexelCopyBufferLayout::rowsPerImage = 0

Rows allotted to the image. Must cover the copy height.


The documentation for this struct was generated from the following file: