TextureDescriptor
public final class TextureDescriptor
A descriptor for creating a GPU texture.
Summary
Public constructors |
|---|
TextureDescriptor( |
Public methods |
|
|---|---|
final int |
The dimensionality of the texture (1D, 2D, or 3D). |
final int |
The texture format. |
final String |
getLabel()The label for the texture. |
final int |
|
final int |
|
final @NonNull Extent3D |
getSize()The size (width, height, depth/layers) of the texture. |
final int |
getUsage()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
public TextureDescriptor(
int usage,
@NonNull Extent3D size,
String label,
int dimension,
int format,
int mipLevelCount,
int sampleCount,
@NonNull int[] viewFormats
)
Public methods
getDimension
public final int getDimension()
The dimensionality of the texture (1D, 2D, or 3D).
getSize
public final @NonNull Extent3D getSize()
The size (width, height, depth/layers) of the texture.
getUsage
public final int getUsage()
The allowed usages for the texture (e.g., sampled, render_attachment).
setDimension
public final void setDimension(int dimension)
The dimensionality of the texture (1D, 2D, or 3D).
setSize
public final void setSize(@NonNull Extent3D size)
The size (width, height, depth/layers) of the texture.
setUsage
public final void setUsage(int usage)
The allowed usages for the texture (e.g., sampled, render_attachment).