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 constructors |
|---|
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
public GPUTextureComponentSwizzleDescriptor(
@NonNull GPUTextureComponentSwizzle swizzle
)
Public methods
getSwizzle
public final @NonNull GPUTextureComponentSwizzle getSwizzle()
The swizzle configuration specifying the source component or constant value for each channel of the texture view.
setSwizzle
public final void setSwizzle(@NonNull GPUTextureComponentSwizzle value)
The swizzle configuration specifying the source component or constant value for each channel of the texture view.