GPUTextureDescriptor


public final class GPUTextureDescriptor


Describes a texture to be created.

Summary

Nested types

public final class GPUTextureDescriptor.Builder

Builder for GPUTextureDescriptor.

Public constructors

GPUTextureDescriptor(
    int usage,
    @NonNull GPUExtent3D size,
    String label,
    int dimension,
    int format,
    int mipLevelCount,
    int sampleCount,
    @NonNull int[] viewFormats
)

Public methods

final int

The dimension of the texture.

final int

The format of the texture.

final String

A human-readable label for debugging.

final int
final int
final @NonNull GPUExtent3D

The size of the texture.

final int

The allowed usages for the texture.

final @NonNull int[]
final void
setDimension(int dimension)

The dimension of the texture.

final void
setFormat(int format)

The format of the texture.

final void

A human-readable label for debugging.

final void
setMipLevelCount(int mipLevelCount)
final void
setSampleCount(int sampleCount)
final void

The size of the texture.

final void
setUsage(int usage)

The allowed usages for the texture.

final void
setViewFormats(@NonNull int[] viewFormats)

Public constructors

GPUTextureDescriptor

Added in 1.0.0-alpha04
public GPUTextureDescriptor(
    int usage,
    @NonNull GPUExtent3D size,
    String label,
    int dimension,
    int format,
    int mipLevelCount,
    int sampleCount,
    @NonNull int[] viewFormats
)

Public methods

getDimension

Added in 1.0.0-alpha04
public final int getDimension()

The dimension of the texture. Defaults to @see TextureDimension._2D.

getFormat

Added in 1.0.0-alpha04
public final int getFormat()

The format of the texture.

getLabel

Added in 1.0.0-alpha04
public final String getLabel()

A human-readable label for debugging.

getMipLevelCount

Added in 1.0.0-alpha04
public final int getMipLevelCount()

getSampleCount

Added in 1.0.0-alpha04
public final int getSampleCount()

getSize

Added in 1.0.0-alpha04
public final @NonNull GPUExtent3D getSize()

The size of the texture.

getUsage

Added in 1.0.0-alpha04
public final int getUsage()

The allowed usages for the texture.

getViewFormats

Added in 1.0.0-alpha04
public final @NonNull int[] getViewFormats()

setDimension

Added in 1.0.0-alpha04
public final void setDimension(int dimension)

The dimension of the texture. Defaults to @see TextureDimension._2D.

setFormat

Added in 1.0.0-alpha04
public final void setFormat(int format)

The format of the texture.

setLabel

Added in 1.0.0-alpha04
public final void setLabel(String label)

A human-readable label for debugging.

setMipLevelCount

Added in 1.0.0-alpha04
public final void setMipLevelCount(int mipLevelCount)

setSampleCount

Added in 1.0.0-alpha04
public final void setSampleCount(int sampleCount)

setSize

Added in 1.0.0-alpha04
public final void setSize(@NonNull GPUExtent3D size)

The size of the texture.

setUsage

Added in 1.0.0-alpha04
public final void setUsage(int usage)

The allowed usages for the texture.

setViewFormats

Added in 1.0.0-alpha04
public final void setViewFormats(@NonNull int[] viewFormats)