Logo
StateInfo.h
1#pragma once
2#include "GfxTypes.h"
3
4namespace XXSharpKmyGfx
5{
6 private value struct StateInfo
7 {
8 public:
9 FUNCTYPE depthFunc;//
10 FUNCTYPE stencilFunc;//
11 STENCILOP stencilOpFail;//
12 STENCILOP stencilOpDepthFail;//
13 STENCILOP stencilOpPass;//
14 bool colorWriteR;
15 bool colorWriteG;
16 bool colorWriteB;
17 bool colorWriteA;
18 bool depthTest;//
19 bool depthWrite;//
20 bool stencilTest;//
21 u32 stencilRef;//
22 u32 stencilMask;//
23
24 static StateInfo standard()
25 {
26 StateInfo r;
27 r.depthFunc = FUNCTYPE::kLEQUAL;
28 r.stencilFunc = FUNCTYPE::kALWAYS;
29 r.stencilOpFail = STENCILOP::kKEEP;
30 r.stencilOpDepthFail = STENCILOP::kKEEP;
31 r.stencilOpPass = STENCILOP::kKEEP;
32 r.depthTest = true;
33 r.depthWrite = true;
34 r.stencilTest = false;
35 r.stencilRef = 0;
36 r.stencilMask = 0;
37 r.colorWriteR = true;
38 r.colorWriteG = true;
39 r.colorWriteB = true;
40 r.colorWriteA = true;
41 return r;
42 };
43 };
44}
FUNCTYPE
Definition: GfxTypes.cs:119
STENCILOP
Definition: GfxTypes.cs:111