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

    Enum bgfx.StencilFlags

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

    Fields

    Name Description Value
    Default 0
    OpPassZZero

    Zero.

    0
    FuncRefShift 0
    OpFailZZero

    Zero.

    0
    OpFailSZero

    Zero.

    0
    None 0
    FuncRmaskShift 8
    TestShift 16
    OpFailSShift 20
    OpFailZShift 24
    OpPassZShift 28
    FuncRefMask 255
    FuncRmaskMask 65280
    TestLess

    Enable stencil test, less.

    65536
    TestLequal

    Enable stencil test, less or equal.

    131072
    TestEqual

    Enable stencil test, equal.

    196608
    TestGequal

    Enable stencil test, greater or equal.

    262144
    TestGreater

    Enable stencil test, greater.

    327680
    TestNotequal

    Enable stencil test, not equal.

    393216
    TestNever

    Enable stencil test, never.

    458752
    TestAlways

    Enable stencil test, always.

    524288
    TestMask 983040
    OpFailSKeep

    Keep.

    1048576
    OpFailSReplace

    Replace.

    2097152
    OpFailSIncr

    Increment and wrap.

    3145728
    OpFailSIncrsat

    Increment and clamp.

    4194304
    OpFailSDecr

    Decrement and wrap.

    5242880
    OpFailSDecrsat

    Decrement and clamp.

    6291456
    OpFailSInvert

    Invert.

    7340032
    OpFailSMask 15728640
    OpFailZKeep

    Keep.

    16777216
    OpFailZReplace

    Replace.

    33554432
    OpFailZIncr

    Increment and wrap.

    50331648
    OpFailZIncrsat

    Increment and clamp.

    67108864
    OpFailZDecr

    Decrement and wrap.

    83886080
    OpFailZDecrsat

    Decrement and clamp.

    100663296
    OpFailZInvert

    Invert.

    117440512
    OpFailZMask 251658240
    OpPassZKeep

    Keep.

    268435456
    OpPassZReplace

    Replace.

    536870912
    OpPassZIncr

    Increment and wrap.

    805306368
    OpPassZIncrsat

    Increment and clamp.

    1073741824
    OpPassZDecr

    Decrement and wrap.

    1342177280
    OpPassZDecrsat

    Decrement and clamp.

    1610612736
    OpPassZInvert

    Invert.

    1879048192
    OpPassZMask 4026531840
    Mask 4294967295
    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