TextureDescriptor
class TextureDescriptor
A descriptor for creating a GPU texture.
Summary
Public constructors |
|---|
Public properties |
|
|---|---|
Int |
The dimensionality of the texture (1D, 2D, or 3D). |
Int |
The texture format. |
String? |
The label for the texture. |
Int |
|
Int |
|
Extent3D |
The size (width, height, depth/layers) of the texture. |
Int |
The allowed usages for the texture (e.g., sampled, render_attachment). |
IntArray |
Public constructors
TextureDescriptor
Added in 1.0.0-alpha01
TextureDescriptor(
usage: Int,
size: Extent3D,
label: String? = null,
dimension: Int = TextureDimension._2D,
format: Int = TextureFormat.Undefined,
mipLevelCount: Int = 1,
sampleCount: Int = 1,
viewFormats: IntArray = intArrayOf()
)
Public properties
dimension
Added in 1.0.0-alpha01
var dimension: Int
The dimensionality of the texture (1D, 2D, or 3D).
size
Added in 1.0.0-alpha01
var size: Extent3D
The size (width, height, depth/layers) of the texture.
usage
Added in 1.0.0-alpha01
var usage: Int
The allowed usages for the texture (e.g., sampled, render_attachment).