GPUTexelCopyTextureInfo


public final class GPUTexelCopyTextureInfo


Describes a texture used in a texel copy operation.

Summary

Public constructors

GPUTexelCopyTextureInfo(
    @NonNull GPUTexture texture,
    int mipLevel,
    @NonNull GPUOrigin3D origin,
    int aspect
)

Public methods

final int

The texture aspect to use.

final int
final @NonNull GPUOrigin3D

The origin of the copy region in the texture.

final @NonNull GPUTexture

The texture object.

final void
setAspect(int aspect)

The texture aspect to use.

final void
setMipLevel(int mipLevel)
final void

The origin of the copy region in the texture.

final void

The texture object.

Public constructors

GPUTexelCopyTextureInfo

Added in 1.0.0-alpha04
public GPUTexelCopyTextureInfo(
    @NonNull GPUTexture texture,
    int mipLevel,
    @NonNull GPUOrigin3D origin,
    int aspect
)

Public methods

getAspect

Added in 1.0.0-alpha04
public final int getAspect()

The texture aspect to use. Defaults to @see TextureAspect.All.

getMipLevel

Added in 1.0.0-alpha04
public final int getMipLevel()

getOrigin

Added in 1.0.0-alpha04
public final @NonNull GPUOrigin3D getOrigin()

The origin of the copy region in the texture.

getTexture

Added in 1.0.0-alpha04
public final @NonNull GPUTexture getTexture()

The texture object.

setAspect

Added in 1.0.0-alpha04
public final void setAspect(int aspect)

The texture aspect to use. Defaults to @see TextureAspect.All.

setMipLevel

Added in 1.0.0-alpha04
public final void setMipLevel(int mipLevel)

setOrigin

Added in 1.0.0-alpha04
public final void setOrigin(@NonNull GPUOrigin3D origin)

The origin of the copy region in the texture.

setTexture

Added in 1.0.0-alpha04
public final void setTexture(@NonNull GPUTexture texture)

The texture object.