Enum bgfx.SamplerFlags | Project Tiny | 0.32.0-preview.54
docs.unity3d.com
    Show / Hide Table of Contents

    Enum bgfx.SamplerFlags

    Namespace: Bgfx
    Syntax
    [Flags]
    public enum SamplerFlags : uint

    Fields

    Name Description Value
    UShift 0
    None 0
    UMirror

    Wrap U mode: Mirror

    1
    VShift 2
    UClamp

    Wrap U mode: Clamp

    2
    UMask 3
    UBorder

    Wrap U mode: Border

    3
    WShift 4
    VMirror

    Wrap V mode: Mirror

    4
    MinShift 6
    VClamp

    Wrap V mode: Clamp

    8
    MagShift 8
    MipShift 10
    VBorder

    Wrap V mode: Border

    12
    VMask 12
    WMirror

    Wrap W mode: Mirror

    16
    CompareShift 16
    UvwMirror 21
    BorderColorShift 24
    ReservedShift 28
    WClamp

    Wrap W mode: Clamp

    32
    UvwClamp 42
    WMask 48
    WBorder

    Wrap W mode: Border

    48
    UvwBorder 63
    MinPoint

    Min sampling mode: Point

    64
    MinAnisotropic

    Min sampling mode: Anisotropic

    128
    MinMask 192
    MagPoint

    Mag sampling mode: Point

    256
    MagAnisotropic

    Mag sampling mode: Anisotropic

    512
    MagMask 768
    MipMask 1024
    MipPoint

    Mip sampling mode: Point

    1024
    Point 1344
    CompareLess

    Compare when sampling depth texture: less.

    65536
    CompareLequal

    Compare when sampling depth texture: less or equal.

    131072
    CompareEqual

    Compare when sampling depth texture: equal.

    196608
    CompareGequal

    Compare when sampling depth texture: greater or equal.

    262144
    CompareGreater

    Compare when sampling depth texture: greater.

    327680
    CompareNotequal

    Compare when sampling depth texture: not equal.

    393216
    CompareNever

    Compare when sampling depth texture: never.

    458752
    CompareAlways

    Compare when sampling depth texture: always.

    524288
    CompareMask 983040
    BitsMask 985087
    SampleStencil

    Sample stencil instead of depth.

    1048576
    BorderColorMask 251658240
    ReservedMask 4026531840
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023