TextureViewDescriptor


class TextureViewDescriptor


A descriptor for creating a texture view.

Summary

Public constructors

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

Public properties

Int
Int

The aspect of the texture (color, depth, or stencil) visible through this view.

Int
Int
Int

The dimensionality of the view (1D, 2D, 2D_array, cube, cube_array, or 3D).

Int

The format of the data accessed through the view.

String?

The label for the texture view.

Int
TextureComponentSwizzleDescriptor?

Extension for specifying texture component swizzling when creating a texture view.

Int

The intended usage of the texture view.

Public constructors

TextureViewDescriptor

Added in 1.0.0-alpha01
TextureViewDescriptor(
    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: TextureComponentSwizzleDescriptor? = null
)

Public properties

arrayLayerCount

Added in 1.0.0-alpha01
var arrayLayerCountInt

aspect

Added in 1.0.0-alpha01
var aspectInt

The aspect of the texture (color, depth, or stencil) visible through this view.

baseArrayLayer

Added in 1.0.0-alpha01
var baseArrayLayerInt

baseMipLevel

Added in 1.0.0-alpha01
var baseMipLevelInt

dimension

Added in 1.0.0-alpha01
var dimensionInt

The dimensionality of the view (1D, 2D, 2D_array, cube, cube_array, or 3D).

format

Added in 1.0.0-alpha01
var formatInt

The format of the data accessed through the view.

label

Added in 1.0.0-alpha01
var labelString?

The label for the texture view.

mipLevelCount

Added in 1.0.0-alpha01
var mipLevelCountInt

textureComponentSwizzleDescriptor

Added in 1.0.0-alpha01
var textureComponentSwizzleDescriptorTextureComponentSwizzleDescriptor?

Extension for specifying texture component swizzling when creating a texture view.

usage

Added in 1.0.0-alpha01
var usageInt

The intended usage of the texture view.