Logo
StateInfo.h
1#pragma once
2#include "GfxTypes.h"
3
4namespace SharpKmyGfx
5{
6 public value struct StateInfo
7 {
8 public:
18 bool depthTest;//
19 bool depthWrite;//
23
25 {
26 StateInfo r;
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}
Definition: Asset.h:4
FUNCTYPE
Definition: GfxTypes.h:40
STENCILOP
Definition: GfxTypes.h:33
Definition: StateInfo.h:7
u32 stencilMask
Definition: StateInfo.h:22
bool stencilTest
Definition: StateInfo.h:20
bool colorWriteG
Definition: StateInfo.h:15
bool colorWriteA
Definition: StateInfo.h:17
STENCILOP stencilOpDepthFail
Definition: StateInfo.h:12
static StateInfo standard()
Definition: StateInfo.h:24
FUNCTYPE stencilFunc
Definition: StateInfo.h:10
FUNCTYPE depthFunc
Definition: StateInfo.h:9
u32 stencilRef
Definition: StateInfo.h:21
bool colorWriteB
Definition: StateInfo.h:16
bool colorWriteR
Definition: StateInfo.h:14
bool depthTest
Definition: StateInfo.h:18
STENCILOP stencilOpPass
Definition: StateInfo.h:13
STENCILOP stencilOpFail
Definition: StateInfo.h:11
bool depthWrite
Definition: StateInfo.h:19