Table of Contents

Enum TextureAddressMode

Namespace
Stride.Graphics
Assembly
Stride.dll

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 = 4

Texture coordinates outside the range [0, 1] are set to the border color specified in SamplerState or HLSL code.

Clamp = 3

Texture coordinates outside the range [0, 1] are set to the Texture color at 0 or 1, respectively.

Mirror = 2

Flip 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 = 5

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

Wrap = 1

Tile the Texture at every (u,v) integer junction. For example, for u values between 0 and 3, the Texture is repeated three times.