Aller au contenu

TexelCopyBufferInfo

data class TexelCopyBufferInfo(
    val buffer: GPUBuffer, 
    val offset: GPUSize64, 
    val bytesPerRow: GPUSize32? = null, 
    val rowsPerImage: GPUSize32? = null
) : GPUTexelCopyBufferInfo
"GPUTexelCopyBufferInfo" describes the "info" (GPUBuffer and GPUTexelCopyBufferLayout) about a "buffer" source or destination of a "texel copy" operation. Together with the copySize, it describes the footprint of a region of texels in a GPUBuffer.

Constructors

TexelCopyBufferInfo

constructor(
    buffer: GPUBuffer, 
    offset: GPUSize64, 
    bytesPerRow: GPUSize32? = null, 
    rowsPerImage: GPUSize32? = null
)

Properties

buffer

open override val buffer: GPUBuffer
A buffer which either contains texel data to be copied or will store the texel data being copied, depending on the method it is being passed to.

bytesPerRow

open override val bytesPerRow: GPUSize32?

offset

open override val offset: GPUSize64

rowsPerImage

open override val rowsPerImage: GPUSize32?