XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALTextureAddressMode Struct Reference

This describes the texture address mode. It defines a technique for resolving texture coordinates that are outside of the boundries of a texture. The enumeration generally mirrors D3D11_TEXTURE_ADDRESS_MODE/D3D12_TEXTURE_ADDRESS_MODE enumeration. More...

#include <GraphicsTypes.h>

Inheritance diagram for xiiGALTextureAddressMode:
[legend]

Public Types

enum  Enum : StorageType {
  Unknown = -1 , Wrap , Mirror , Clamp ,
  Border , MirrorOnce , ENUM_COUNT , Default = Unknown
}
 
using StorageType = xiiInt8
 

Detailed Description

This describes the texture address mode. It defines a technique for resolving texture coordinates that are outside of the boundries of a texture. The enumeration generally mirrors D3D11_TEXTURE_ADDRESS_MODE/D3D12_TEXTURE_ADDRESS_MODE enumeration.

Member Enumeration Documentation

◆ Enum

enum xiiGALTextureAddressMode::Enum : StorageType
Enumerator
Unknown 

Unknown texture address mode.

Wrap 

Tile the texture at every integer junction.

Mirror 

Flip the texture at every integer junctions.

Clamp 

Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0 respectively.

Border 

Texture coordinates outside the range [0.0, 1.0] are set to the border color.

MirrorOnce 

Similar to Mirror and Clamp. This takes the absolute value of the texture coordinate (thus mirroring around 0), then clamps to the the maximum value.


The documentation for this struct was generated from the following file: