GPUTextureComponentSwizzleDescriptor


public final class GPUTextureComponentSwizzleDescriptor


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.

Summary

Public methods

final @NonNull GPUTextureComponentSwizzle

The swizzle configuration specifying the source component or constant value for each channel of the texture view.

final void

The swizzle configuration specifying the source component or constant value for each channel of the texture view.

Public constructors

GPUTextureComponentSwizzleDescriptor

Added in 1.0.0-alpha04
public GPUTextureComponentSwizzleDescriptor(
    @NonNull GPUTextureComponentSwizzle swizzle
)

Public methods

getSwizzle

Added in 1.0.0-alpha04
public final @NonNull GPUTextureComponentSwizzle getSwizzle()

The swizzle configuration specifying the source component or constant value for each channel of the texture view.

setSwizzle

Added in 1.0.0-alpha04
public final void setSwizzle(@NonNull GPUTextureComponentSwizzle swizzle)

The swizzle configuration specifying the source component or constant value for each channel of the texture view.