Struct PlaneByteLayout

Byte-oriented layout of one logical plane inside one physical resource.

struct PlaneByteLayout;

byteOffset is relative to the start of the physical resource and identifies resident descriptor coordinate (0, 0) for this plane.

Signed byte strides permit validated negative traversal.

This type contains layout metadata only. It does not own or retain the physical resource.

Example

Example describing external raster memory in bytes.

import raster;

const layout = PlaneByteLayout(8, -16, 2);

assert(layout.byteOffset == 8);
assert(layout.rowStrideBytes == -16);
assert(layout.sampleStrideBytes == 2);