Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    TextureAddressMode Enum

    Namespace: Stride.Graphics
    Assembly: Stride.dll

    Identify a technique for resolving texture coordinates that are outside of the boundaries of a texture.

    [DataContract("TextureAddressMode")]
    public enum TextureAddressMode

    Fields

    Name Description
    Border

    Texture coordinates outside the range [0.0, 1.0] are set to the border color specified in or HLSL code.

    Clamp

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

    Mirror

    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

    Similar to D3D11_TEXTURE_ADDRESS_MIRROR and D3D11_TEXTURE_ADDRESS_CLAMP. Takes the absolute value of the texture coordinate (thus, mirroring around 0), and then clamps to the maximum value.

    Wrap

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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<TextureAddressMode>(ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<TextureAddressMode>(ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation