GPUTextureDescriptor


class GPUTextureDescriptor


Describes a texture to be created.

Summary

Nested types

Builder for GPUTextureDescriptor.

Public constructors

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

Public properties

Int

The dimension of the texture.

Int

The format of the texture.

String?

A human-readable label for debugging.

Int
Int
GPUExtent3D

The size of the texture.

Int

The allowed usages for the texture.

IntArray

Public constructors

GPUTextureDescriptor

Added in 1.0.0-alpha04
GPUTextureDescriptor(
    usage: Int,
    size: GPUExtent3D,
    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-alpha04
var dimensionInt

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

format

Added in 1.0.0-alpha04
var formatInt

The format of the texture.

label

Added in 1.0.0-alpha04
var labelString?

A human-readable label for debugging.

mipLevelCount

Added in 1.0.0-alpha04
var mipLevelCountInt

sampleCount

Added in 1.0.0-alpha04
var sampleCountInt

size

Added in 1.0.0-alpha04
var sizeGPUExtent3D

The size of the texture.

usage

Added in 1.0.0-alpha04
var usageInt

The allowed usages for the texture.

viewFormats

Added in 1.0.0-alpha04
var viewFormatsIntArray