GPUTextureViewDescriptor


class GPUTextureViewDescriptor


Describes a texture view.

Summary

Public constructors

GPUTextureViewDescriptor(
    label: String?,
    format: Int,
    dimension: Int,
    baseMipLevel: Int,
    mipLevelCount: Int,
    baseArrayLayer: Int,
    arrayLayerCount: Int,
    aspect: Int,
    usage: Int,
    textureComponentSwizzleDescriptor: GPUTextureComponentSwizzleDescriptor?
)

Public properties

Int
Int

The texture aspect for the view.

Int
Int
Int

The dimension of the texture view.

Int

The format of the texture view.

String?

A human-readable label for debugging.

Int
GPUTextureComponentSwizzleDescriptor?

An extension chained to a texture view descriptor to define a custom component swizzle.

Int

The usage of the texture view.

Public constructors

GPUTextureViewDescriptor

Added in 1.0.0-alpha05
GPUTextureViewDescriptor(
    label: String? = null,
    format: Int = TextureFormat.Undefined,
    dimension: Int = TextureViewDimension.Undefined,
    baseMipLevel: Int = 0,
    mipLevelCount: Int = Constants.MIP_LEVEL_COUNT_UNDEFINED,
    baseArrayLayer: Int = 0,
    arrayLayerCount: Int = Constants.ARRAY_LAYER_COUNT_UNDEFINED,
    aspect: Int = TextureAspect.All,
    usage: Int = TextureUsage.None,
    textureComponentSwizzleDescriptor: GPUTextureComponentSwizzleDescriptor? = null
)

Public properties

arrayLayerCount

Added in 1.0.0-alpha05
var arrayLayerCount: Int

aspect

Added in 1.0.0-alpha05
var aspect: Int

The texture aspect for the view. Defaults to @see TextureAspect.All.

baseArrayLayer

Added in 1.0.0-alpha05
var baseArrayLayer: Int

baseMipLevel

Added in 1.0.0-alpha05
var baseMipLevel: Int

dimension

Added in 1.0.0-alpha05
var dimension: Int

The dimension of the texture view.

format

Added in 1.0.0-alpha05
var format: Int

The format of the texture view.

label

Added in 1.0.0-alpha05
var label: String?

A human-readable label for debugging.

mipLevelCount

Added in 1.0.0-alpha05
var mipLevelCount: Int

textureComponentSwizzleDescriptor

Added in 1.0.0-alpha05
var textureComponentSwizzleDescriptor: GPUTextureComponentSwizzleDescriptor?

An extension chained to a texture view descriptor to define a custom component swizzle. This allows remapping or forcing specific values for the R, G, B, and A channels when accessing the texture view.

usage

Added in 1.0.0-alpha05
var usage: Int

The usage of the texture view.