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

Detailed Description

Specification


C version:

// Provided by Wisdom 0.7.0.
typedef enum WisAddressMode {
WisAddressModeRepeat = 0,
WisAddressModeMirroredRepeat = 1,
WisAddressModeClampToEdge = 2,
WisAddressModeClampToBorder = 3,
WisAddressModeMirrorClampToEdge = 4,

C++ version:

namespace wis{
// Provided by Wisdom 0.7.0.
enum class AddressMode {
Repeat = 0,
MirroredRepeat = 1,
ClampToEdge = 2,
ClampToBorder = 3,
MirrorClampToEdge = 4,
};
}

Description


Address mode for texture sampling.

Note
Translates to D3D12_TEXTURE_ADDRESS_MODE for DirectX 12 implementation, and VkSamplerAddressMode for Vulkan implementation.

Values:

  • WisAddressModeRepeat = 0: Repeat the texture.
  • WisAddressModeMirroredRepeat = 1: Repeat the texture with mirroring.
  • WisAddressModeClampToEdge = 2: Clamp the texture to the edge.
  • WisAddressModeClampToBorder = 3: Clamp the texture to the border.
  • WisAddressModeMirrorClampToEdge = 4: Mirror and clamp the texture to the edge.

See Also


See also
Structs: WisSamplerDesc