blob: a3d0bf44cf8af3c2e68b6e76b59e9a1646a7cf2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
#include "shaderlib/cshader.h"
class depthwrite_ps20b_Static_Index
{
private:
int m_nCOLOR_DEPTH;
#ifdef _DEBUG
bool m_bCOLOR_DEPTH;
#endif
public:
void SetCOLOR_DEPTH( int i )
{
Assert( i >= 0 && i <= 1 );
m_nCOLOR_DEPTH = i;
#ifdef _DEBUG
m_bCOLOR_DEPTH = true;
#endif
}
void SetCOLOR_DEPTH( bool i )
{
m_nCOLOR_DEPTH = i ? 1 : 0;
#ifdef _DEBUG
m_bCOLOR_DEPTH = true;
#endif
}
public:
depthwrite_ps20b_Static_Index( )
{
#ifdef _DEBUG
m_bCOLOR_DEPTH = false;
#endif // _DEBUG
m_nCOLOR_DEPTH = 0;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllStaticVarsDefined = m_bCOLOR_DEPTH;
Assert( bAllStaticVarsDefined );
#endif // _DEBUG
return ( 2 * m_nCOLOR_DEPTH ) + 0;
}
};
#define shaderStaticTest_depthwrite_ps20b psh_forgot_to_set_static_COLOR_DEPTH + 0
class depthwrite_ps20b_Dynamic_Index
{
private:
int m_nALPHACLIP;
#ifdef _DEBUG
bool m_bALPHACLIP;
#endif
public:
void SetALPHACLIP( int i )
{
Assert( i >= 0 && i <= 1 );
m_nALPHACLIP = i;
#ifdef _DEBUG
m_bALPHACLIP = true;
#endif
}
void SetALPHACLIP( bool i )
{
m_nALPHACLIP = i ? 1 : 0;
#ifdef _DEBUG
m_bALPHACLIP = true;
#endif
}
public:
depthwrite_ps20b_Dynamic_Index()
{
#ifdef _DEBUG
m_bALPHACLIP = false;
#endif // _DEBUG
m_nALPHACLIP = 0;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllDynamicVarsDefined = m_bALPHACLIP;
Assert( bAllDynamicVarsDefined );
#endif // _DEBUG
return ( 1 * m_nALPHACLIP ) + 0;
}
};
#define shaderDynamicTest_depthwrite_ps20b psh_forgot_to_set_dynamic_ALPHACLIP + 0
|