diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc')
| -rw-r--r-- | materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc b/materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc new file mode 100644 index 0000000..9978f06 --- /dev/null +++ b/materialsystem/stdshaders/fxctmp9/spritecard_ps11.inc @@ -0,0 +1,110 @@ +#include "shaderlib/cshader.h" +class spritecard_ps11_Static_Index +{ +private: + int m_nADDBASETEXTURE2; +#ifdef _DEBUG + bool m_bADDBASETEXTURE2; +#endif +public: + void SetADDBASETEXTURE2( int i ) + { + Assert( i >= 0 && i <= 1 ); + m_nADDBASETEXTURE2 = i; +#ifdef _DEBUG + m_bADDBASETEXTURE2 = true; +#endif + } + void SetADDBASETEXTURE2( bool i ) + { + m_nADDBASETEXTURE2 = i ? 1 : 0; +#ifdef _DEBUG + m_bADDBASETEXTURE2 = true; +#endif + } +private: + int m_nADDSELF; +#ifdef _DEBUG + bool m_bADDSELF; +#endif +public: + void SetADDSELF( int i ) + { + Assert( i >= 0 && i <= 1 ); + m_nADDSELF = i; +#ifdef _DEBUG + m_bADDSELF = true; +#endif + } + void SetADDSELF( bool i ) + { + m_nADDSELF = i ? 1 : 0; +#ifdef _DEBUG + m_bADDSELF = true; +#endif + } +private: + int m_nUSEALPHAASRGB; +#ifdef _DEBUG + bool m_bUSEALPHAASRGB; +#endif +public: + void SetUSEALPHAASRGB( int i ) + { + Assert( i >= 0 && i <= 1 ); + m_nUSEALPHAASRGB = i; +#ifdef _DEBUG + m_bUSEALPHAASRGB = true; +#endif + } + void SetUSEALPHAASRGB( bool i ) + { + m_nUSEALPHAASRGB = i ? 1 : 0; +#ifdef _DEBUG + m_bUSEALPHAASRGB = true; +#endif + } +public: + spritecard_ps11_Static_Index( ) + { +#ifdef _DEBUG + m_bADDBASETEXTURE2 = false; +#endif // _DEBUG + m_nADDBASETEXTURE2 = 0; +#ifdef _DEBUG + m_bADDSELF = false; +#endif // _DEBUG + m_nADDSELF = 0; +#ifdef _DEBUG + m_bUSEALPHAASRGB = false; +#endif // _DEBUG + m_nUSEALPHAASRGB = 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_bADDBASETEXTURE2 && m_bADDSELF && m_bUSEALPHAASRGB; + Assert( bAllStaticVarsDefined ); +#endif // _DEBUG + return ( 1 * m_nADDBASETEXTURE2 ) + ( 2 * m_nADDSELF ) + ( 4 * m_nUSEALPHAASRGB ) + 0; + } +}; +#define shaderStaticTest_spritecard_ps11 psh_forgot_to_set_static_ADDBASETEXTURE2 + psh_forgot_to_set_static_ADDSELF + psh_forgot_to_set_static_USEALPHAASRGB + 0 +class spritecard_ps11_Dynamic_Index +{ +public: + spritecard_ps11_Dynamic_Index() + { + } + 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 +#endif // _DEBUG + return 0; + } +}; +#define shaderDynamicTest_spritecard_ps11 0 |