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 value)
final void
setAspect(int value)

The texture aspect for the view.

final void
setBaseArrayLayer(int value)
final void
setBaseMipLevel(int value)
final void
setDimension(int value)

The dimension of the texture view.

final void
setFormat(int value)

The format of the texture view.

final void

A human-readable label for debugging.

final void
setMipLevelCount(int value)
final void

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

final void
setUsage(int value)

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 value)

setAspect

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

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

setBaseArrayLayer

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

setBaseMipLevel

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

setDimension

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

The dimension of the texture view.

setFormat

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

The format of the texture view.

setLabel

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

A human-readable label for debugging.

setMipLevelCount

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

setTextureComponentSwizzleDescriptor

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

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 value)

The usage of the texture view.