TextureViewDescriptor


public final class TextureViewDescriptor


A descriptor for creating a texture view.

Summary

Public constructors

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

Public methods

final int
final int

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

final int
final int
final int

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

final int

The format of the data accessed through the view.

final String

The label for the texture view.

final int
final TextureComponentSwizzleDescriptor

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

final int

The intended usage of the texture view.

final void
setArrayLayerCount(int arrayLayerCount)
final void
setAspect(int aspect)

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

final void
setBaseArrayLayer(int baseArrayLayer)
final void
setBaseMipLevel(int baseMipLevel)
final void
setDimension(int dimension)

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

final void
setFormat(int format)

The format of the data accessed through the view.

final void

The label for the texture view.

final void
setMipLevelCount(int mipLevelCount)
final void

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

final void
setUsage(int usage)

The intended usage of the texture view.

Public constructors

TextureViewDescriptor

Added in 1.0.0-alpha01
public TextureViewDescriptor(
    int usage,
    String label,
    int format,
    int dimension,
    int baseMipLevel,
    int mipLevelCount,
    int baseArrayLayer,
    int arrayLayerCount,
    int aspect,
    TextureComponentSwizzleDescriptor textureComponentSwizzleDescriptor
)

Public methods

getArrayLayerCount

Added in 1.0.0-alpha01
public final int getArrayLayerCount()

getAspect

Added in 1.0.0-alpha01
public final int getAspect()

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

getBaseArrayLayer

Added in 1.0.0-alpha01
public final int getBaseArrayLayer()

getBaseMipLevel

Added in 1.0.0-alpha01
public final int getBaseMipLevel()

getDimension

Added in 1.0.0-alpha01
public final int getDimension()

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

getFormat

Added in 1.0.0-alpha01
public final int getFormat()

The format of the data accessed through the view.

getLabel

Added in 1.0.0-alpha01
public final String getLabel()

The label for the texture view.

getMipLevelCount

Added in 1.0.0-alpha01
public final int getMipLevelCount()

getTextureComponentSwizzleDescriptor

Added in 1.0.0-alpha01
public final TextureComponentSwizzleDescriptor getTextureComponentSwizzleDescriptor()

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

getUsage

Added in 1.0.0-alpha01
public final int getUsage()

The intended usage of the texture view.

setArrayLayerCount

Added in 1.0.0-alpha01
public final void setArrayLayerCount(int arrayLayerCount)

setAspect

Added in 1.0.0-alpha01
public final void setAspect(int aspect)

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

setBaseArrayLayer

Added in 1.0.0-alpha01
public final void setBaseArrayLayer(int baseArrayLayer)

setBaseMipLevel

Added in 1.0.0-alpha01
public final void setBaseMipLevel(int baseMipLevel)

setDimension

Added in 1.0.0-alpha01
public final void setDimension(int dimension)

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

setFormat

Added in 1.0.0-alpha01
public final void setFormat(int format)

The format of the data accessed through the view.

setLabel

Added in 1.0.0-alpha01
public final void setLabel(String label)

The label for the texture view.

setMipLevelCount

Added in 1.0.0-alpha01
public final void setMipLevelCount(int mipLevelCount)

setTextureComponentSwizzleDescriptor

Added in 1.0.0-alpha01
public final void setTextureComponentSwizzleDescriptor(
    TextureComponentSwizzleDescriptor textureComponentSwizzleDescriptor
)

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

setUsage

Added in 1.0.0-alpha01
public final void setUsage(int usage)

The intended usage of the texture view.