GPUTexelCopyBufferLayout


public final class GPUTexelCopyBufferLayout


Defines the layout of image data within a buffer for copy operations.

Summary

Public constructors

GPUTexelCopyBufferLayout(long offset, int bytesPerRow, int rowsPerImage)

Public methods

final int
final long

The offset in bytes from the start of the buffer.

final int
final void
setBytesPerRow(int bytesPerRow)
final void
setOffset(long offset)

The offset in bytes from the start of the buffer.

final void
setRowsPerImage(int rowsPerImage)

Public constructors

GPUTexelCopyBufferLayout

Added in 1.0.0-alpha02
public GPUTexelCopyBufferLayout(long offset, int bytesPerRow, int rowsPerImage)

Public methods

getBytesPerRow

Added in 1.0.0-alpha02
public final int getBytesPerRow()

getOffset

Added in 1.0.0-alpha02
public final long getOffset()

The offset in bytes from the start of the buffer.

getRowsPerImage

Added in 1.0.0-alpha02
public final int getRowsPerImage()

setBytesPerRow

Added in 1.0.0-alpha02
public final void setBytesPerRow(int bytesPerRow)

setOffset

Added in 1.0.0-alpha02
public final void setOffset(long offset)

The offset in bytes from the start of the buffer.

setRowsPerImage

Added in 1.0.0-alpha02
public final void setRowsPerImage(int rowsPerImage)