wisdom
Loading...
Searching...
No Matches
WisComponentSwizzle Struct Reference

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef enum WisComponentSwizzle {
WisComponentSwizzleIdentity = 0,
WisComponentSwizzleRed = 1,
WisComponentSwizzleGreen = 2,
WisComponentSwizzleBlue = 3,
WisComponentSwizzleAlpha = 4,
WisComponentSwizzleZero = 5,
WisComponentSwizzleOne = 6,

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
enum class ComponentSwizzle {
Identity = 0,
Red = 1,
Green = 2,
Blue = 3,
Alpha = 4,
Zero = 5,
One = 6,
};
}

Description


Component swizzle for texture sampling.

Note
Translates to 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.

See Also


See also
Structs: WisComponentMapping