TextureDescriptor


class TextureDescriptor


A descriptor for creating a GPU texture.

Summary

Public constructors

TextureDescriptor(
    usage: Int,
    size: Extent3D,
    label: String?,
    dimension: Int,
    format: Int,
    mipLevelCount: Int,
    sampleCount: Int,
    viewFormats: IntArray
)

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 dimensionInt

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

format

Added in 1.0.0-alpha01
var formatInt

The texture format.

label

Added in 1.0.0-alpha01
var labelString?

The label for the texture.

mipLevelCount

Added in 1.0.0-alpha01
var mipLevelCountInt

sampleCount

Added in 1.0.0-alpha01
var sampleCountInt

size

Added in 1.0.0-alpha01
var sizeExtent3D

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

usage

Added in 1.0.0-alpha01
var usageInt

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

viewFormats

Added in 1.0.0-alpha01
var viewFormatsIntArray