Enum TextureAddressMode
Identifies a technique for resolving Texture coordinates that are outside of the boundaries of a Texture (outside the [0, 1] range).
[DataContract("TextureAddressMode")]
public enum TextureAddressMode
- Extension Methods
Fields
Border = 4Texture coordinates outside the range [0, 1] are set to the border color specified in SamplerState or HLSL code.
Clamp = 3Texture coordinates outside the range [0, 1] are set to the Texture color at 0 or 1, respectively.
Mirror = 2Flip the Texture at every (u,v) integer junction. For u values between 0 and 1, for example, the Texture is addressed normally; between 1 and 2, the Texture is flipped (mirrored); between 2 and 3, the Texture is normal again; and so on.
MirrorOnce = 5Similar to Mirror and Clamp. Takes the absolute value of the Texture coordinate (thus, mirroring around 0), and then clamps to the maximum value.
Wrap = 1Tile the Texture at every (u,v) integer junction. For example, for u values between 0 and 3, the Texture is repeated three times.