GPUTextureViewDescriptor


public final class GPUTextureViewDescriptor


Describes a texture view.

Summary

Nested types

Builder for GPUTextureViewDescriptor.

Public constructors

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

Public methods

final int
final int

The texture aspect for the view.

final int
final int
final int

The dimension of the texture view.

final int

The format of the texture view.

final String

A human-readable label for debugging.

final int
final GPUTextureComponentSwizzleDescriptor

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

final int

The usage of the texture view.

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

The texture aspect for the view.

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

The dimension of the texture view.

final void
setFormat(int format)

The format of the texture view.

final void

A human-readable label for debugging.

final void
setMipLevelCount(int mipLevelCount)
final void

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

final void
setUsage(int usage)

The usage of the texture view.

Public constructors

GPUTextureViewDescriptor

Added in 1.0.0-alpha04
public GPUTextureViewDescriptor(
    int usage,
    String label,
    int format,
    int dimension,
    int baseMipLevel,
    int mipLevelCount,
    int baseArrayLayer,
    int arrayLayerCount,
    int aspect,
    GPUTextureComponentSwizzleDescriptor textureComponentSwizzleDescriptor
)

Public methods

getArrayLayerCount

Added in 1.0.0-alpha04
public final int getArrayLayerCount()

getAspect

Added in 1.0.0-alpha04
public final int getAspect()

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

getBaseArrayLayer

Added in 1.0.0-alpha04
public final int getBaseArrayLayer()

getBaseMipLevel

Added in 1.0.0-alpha04
public final int getBaseMipLevel()

getDimension

Added in 1.0.0-alpha04
public final int getDimension()

The dimension of the texture view.

getFormat

Added in 1.0.0-alpha04
public final int getFormat()

The format of the texture view.

getLabel

Added in 1.0.0-alpha04
public final String getLabel()

A human-readable label for debugging.

getMipLevelCount

Added in 1.0.0-alpha04
public final int getMipLevelCount()

getTextureComponentSwizzleDescriptor

Added in 1.0.0-alpha04
public final GPUTextureComponentSwizzleDescriptor getTextureComponentSwizzleDescriptor()

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.

getUsage

Added in 1.0.0-alpha04
public final int getUsage()

The usage of the texture view.

setArrayLayerCount

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

setAspect

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

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

setBaseArrayLayer

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

setBaseMipLevel

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

setDimension

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

The dimension of the texture view.

setFormat

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

The format of the texture view.

setLabel

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

A human-readable label for debugging.

setMipLevelCount

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

setTextureComponentSwizzleDescriptor

Added in 1.0.0-alpha04
public final void setTextureComponentSwizzleDescriptor(
    GPUTextureComponentSwizzleDescriptor textureComponentSwizzleDescriptor
)

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.

setUsage

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

The usage of the texture view.