TextureDescriptor


public final class TextureDescriptor


A descriptor for creating a GPU texture.

Summary

Public constructors

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

Public methods

final int

The dimensionality of the texture (1D, 2D, or 3D).

final int

The texture format.

final String

The label for the texture.

final int
final int
final @NonNull Extent3D

The size (width, height, depth/layers) of the texture.

final int

The allowed usages for the texture (e.g., sampled, render_attachment).

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

The dimensionality of the texture (1D, 2D, or 3D).

final void
setFormat(int format)

The texture format.

final void

The label for the texture.

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

The size (width, height, depth/layers) of the texture.

final void
setUsage(int usage)

The allowed usages for the texture (e.g., sampled, render_attachment).

final void
setViewFormats(@NonNull int[] viewFormats)

Public constructors

TextureDescriptor

Added in 1.0.0-alpha01
public TextureDescriptor(
    int usage,
    @NonNull Extent3D size,
    String label,
    int dimension,
    int format,
    int mipLevelCount,
    int sampleCount,
    @NonNull int[] viewFormats
)

Public methods

getDimension

Added in 1.0.0-alpha01
public final int getDimension()

The dimensionality of the texture (1D, 2D, or 3D).

getFormat

Added in 1.0.0-alpha01
public final int getFormat()

The texture format.

getLabel

Added in 1.0.0-alpha01
public final String getLabel()

The label for the texture.

getMipLevelCount

Added in 1.0.0-alpha01
public final int getMipLevelCount()

getSampleCount

Added in 1.0.0-alpha01
public final int getSampleCount()

getSize

Added in 1.0.0-alpha01
public final @NonNull Extent3D getSize()

The size (width, height, depth/layers) of the texture.

getUsage

Added in 1.0.0-alpha01
public final int getUsage()

The allowed usages for the texture (e.g., sampled, render_attachment).

getViewFormats

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

setDimension

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

The dimensionality of the texture (1D, 2D, or 3D).

setFormat

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

The texture format.

setLabel

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

The label for the texture.

setMipLevelCount

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

setSampleCount

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

setSize

Added in 1.0.0-alpha01
public final void setSize(@NonNull Extent3D size)

The size (width, height, depth/layers) of the texture.

setUsage

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

The allowed usages for the texture (e.g., sampled, render_attachment).

setViewFormats

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