Interface ImageDataLayout

Defines the layout of a texture image buffer data for a texture write.

See

https://www.w3.org/TR/webgpu/#dictdef-gpuimagedatalayout

Hierarchy

  • ImageDataLayout

Properties

bytesPerRow: number

The stride in bytes between the beginning of each block row and the subsequent block row.

offset?: number

The data offset in bytes. Defaults to 0.

rowsPerImage?: number

Number of block rows per single image slice of the texture. rowsPerImage × pixelsPerRow is the stride between image slices. Required only for depth > 1. Defaults to 0.

Generated using TypeDoc