![]() |
wisdom
|
C version:
C++ version:
Component swizzle for texture sampling.
D3D12_SHADER_COMPONENT_MAPPING for DirectX 12 implementation, and VkComponentSwizzle for Vulkan implementation.Values:
WisComponentSwizzleIdentity = 0: Use the component as is for sampling.WisComponentSwizzleRed = 1: Use the red component for sampling.WisComponentSwizzleGreen = 2: Use the green component for sampling.WisComponentSwizzleBlue = 3: Use the blue component for sampling.WisComponentSwizzleAlpha = 4: Use the alpha component for sampling.WisComponentSwizzleZero = 5: Use zero for sampling.WisComponentSwizzleOne = 6: Use one for sampling.