Enum bgfx.StateFlags
Namespace: Bgfx
Syntax
[Flags]
public enum StateFlags : ulong
Fields
Name | Description | Value |
---|---|---|
None | No state. |
0 |
BlendEquationAdd | Blend add: src + dst. |
0 |
WriteR | Enable R write. |
1 |
WriteG | Enable G write. |
2 |
DepthTestShift | 4 | |
WriteB | Enable B write. |
4 |
WriteRgb | Enable RGB write. |
7 |
WriteA | Enable alpha write. |
8 |
BlendShift | 12 | |
DepthTestLess | Enable depth test, less. |
16 |
BlendEquationShift | 28 | |
DepthTestLequal | Enable depth test, less or equal. |
32 |
CullShift | 36 | |
AlphaRefShift | 40 | |
PtShift | 48 | |
DepthTestEqual | Enable depth test, equal. |
48 |
PointSizeShift | 52 | |
ReservedShift | 61 | |
DepthTestGequal | Enable depth test, greater or equal. |
64 |
DepthTestGreater | Enable depth test, greater. |
80 |
DepthTestNotequal | Enable depth test, not equal. |
96 |
DepthTestNever | Enable depth test, never. |
112 |
DepthTestAlways | Enable depth test, always. |
128 |
DepthTestMask | 240 | |
BlendZero | 0, 0, 0, 0 |
4096 |
BlendOne | 1, 1, 1, 1 |
8192 |
BlendSrcColor | Rs, Gs, Bs, As |
12288 |
BlendInvSrcColor | 1-Rs, 1-Gs, 1-Bs, 1-As |
16384 |
BlendSrcAlpha | As, As, As, As |
20480 |
BlendInvSrcAlpha | 1-As, 1-As, 1-As, 1-As |
24576 |
BlendDstAlpha | Ad, Ad, Ad, Ad |
28672 |
BlendInvDstAlpha | 1-Ad, 1-Ad, 1-Ad ,1-Ad |
32768 |
BlendDstColor | Rd, Gd, Bd, Ad |
36864 |
BlendInvDstColor | 1-Rd, 1-Gd, 1-Bd, 1-Ad |
40960 |
BlendSrcAlphaSat | f, f, f, 1; f = min(As, 1-Ad) |
45056 |
BlendFactor | Blend factor |
49152 |
BlendInvFactor | 1-Blend factor |
53248 |
BlendMask | 268431360 | |
BlendEquationSub | Blend subtract: src - dst. |
268435456 |
BlendEquationRevsub | Blend reverse subtract: dst - src. |
536870912 |
BlendEquationMin | Blend min: min(src, dst). |
805306368 |
BlendEquationMax | Blend max: max(src, dst). |
1073741824 |
BlendEquationMask | 16911433728 | |
BlendIndependent | Enable blend independent. |
17179869184 |
BlendAlphaToCoverage | Enable alpha to coverage. |
34359738368 |
CullCw | Cull clockwise triangles. |
68719476736 |
CullCcw | Cull counter-clockwise triangles. |
137438953472 |
CullMask | 206158430208 | |
WriteZ | Enable depth write. |
274877906944 |
WriteMask | Write all channels mask. |
274877906959 |
FrontCcw | Front counter-clockwise (default is clockwise). |
549755813888 |
AlphaRefMask | 280375465082880 | |
PtTristrip | Tristrip. |
281474976710656 |
PtLines | Lines. |
562949953421312 |
PtLinestrip | Line strip. |
844424930131968 |
PtPoints | Points. |
1.12589990684262E+15 |
PtMask | 1.97032483697459E+15 | |
PointSizeMask | 6.75539944105574E+16 | |
Msaa | Enable MSAA rasterization. |
7.20575940379279E+16 |
Default | Default state is write to RGB, alpha, and depth with depth test less enabled, with clockwise culling and MSAA (when writing into MSAA frame buffer, otherwise this flag is ignored). |
7.20579376353116E+16 |
Lineaa | Enable line AA rasterization. |
1.44115188075856E+17 |
ConservativeRaster | Enable conservative rasterization. |
2.88230376151712E+17 |
ReservedMask | 1.61409010644959E+19 | |
Mask | 1.84467440737096E+19 |