GPUTextureComponentSwizzleDescriptor


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 properties

GPUTextureComponentSwizzle

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
GPUTextureComponentSwizzleDescriptor(
    swizzle: GPUTextureComponentSwizzle = GPUTextureComponentSwizzle()
)

Public properties

swizzle

Added in 1.0.0-alpha04
var swizzleGPUTextureComponentSwizzle

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