GPUTextureViewDescriptor


class GPUTextureViewDescriptor


Describes a texture view.

Summary

Public constructors

GPUTextureViewDescriptor(
    usage: Int,
    label: String?,
    format: Int,
    dimension: Int,
    baseMipLevel: Int,
    mipLevelCount: Int,
    baseArrayLayer: Int,
    arrayLayerCount: Int,
    aspect: 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-alpha04
GPUTextureViewDescriptor(
    usage: Int,
    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,
    textureComponentSwizzleDescriptor: GPUTextureComponentSwizzleDescriptor? = null
)

Public properties

arrayLayerCount

Added in 1.0.0-alpha04
var arrayLayerCountInt

aspect

Added in 1.0.0-alpha04
var aspectInt

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

baseArrayLayer

Added in 1.0.0-alpha04
var baseArrayLayerInt

baseMipLevel

Added in 1.0.0-alpha04
var baseMipLevelInt

dimension

Added in 1.0.0-alpha04
var dimensionInt

The dimension of the texture view.

format

Added in 1.0.0-alpha04
var formatInt

The format of the texture view.

label

Added in 1.0.0-alpha04
var labelString?

A human-readable label for debugging.

mipLevelCount

Added in 1.0.0-alpha04
var mipLevelCountInt

textureComponentSwizzleDescriptor

Added in 1.0.0-alpha04
var textureComponentSwizzleDescriptorGPUTextureComponentSwizzleDescriptor?

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-alpha04
var usageInt

The usage of the texture view.