TexelCopyBufferLayout¶
data class TexelCopyBufferLayout(
val offset: GPUSize64,
val bytesPerRow: GPUSize32? = null,
val rowsPerImage: GPUSize32? = null
) : GPUTexelCopyBufferLayout
Constructors¶
TexelCopyBufferLayout¶
constructor(
offset: GPUSize64,
bytesPerRow: GPUSize32? = null,
rowsPerImage: GPUSize32? = null
)
Properties¶
bytesPerRow¶
open override val bytesPerRow: GPUSize32?
The stride, in bytes, between the beginning of each texel block row and the subsequent texel block row. Required if there are multiple texel block rows (i.e. the copy height or depth is more than one block).
offset¶
open override val offset: GPUSize64
The offset, in bytes, from the beginning of the texel data source (such as a GPUTexelCopyBufferInfo.buffer) to the start of the texel data within that source.
rowsPerImage¶
open override val rowsPerImage: GPUSize32?
Number of texel block rows per single texel image of the texture. rowsPerImage × bytesPerRow is the stride, in bytes, between the beginning of each texel image of data and the subsequent texel image. Required if there are multiple texel images (i.e. the copy depth is more than one).