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,
    textureBindingViewDimension: GPUTextureBindingViewDimension?
)

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.

GPUTextureBindingViewDimension?
Int

The allowed usages for the texture.

IntArray

Public constructors

GPUTextureDescriptor

Added in 1.0.0-alpha05
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(),
    textureBindingViewDimension: GPUTextureBindingViewDimension? = null
)

Public properties

dimension

Added in 1.0.0-alpha05
var dimensionInt

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

format

Added in 1.0.0-alpha05
var formatInt

The format of the texture.

label

Added in 1.0.0-alpha05
var labelString?

A human-readable label for debugging.

mipLevelCount

Added in 1.0.0-alpha05
var mipLevelCountInt

sampleCount

Added in 1.0.0-alpha05
var sampleCountInt

size

Added in 1.0.0-alpha05
var sizeGPUExtent3D

The size of the texture.

textureBindingViewDimension

Added in 1.0.0-alpha05
var textureBindingViewDimensionGPUTextureBindingViewDimension?

usage

Added in 1.0.0-alpha05
var usageInt

The allowed usages for the texture.

viewFormats

Added in 1.0.0-alpha05
var viewFormatsIntArray