summaryrefslogtreecommitdiff
path: root/materialsystem/stdshaders/fxctmp9/sprite_ps20.inc
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/stdshaders/fxctmp9/sprite_ps20.inc
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/stdshaders/fxctmp9/sprite_ps20.inc')
-rw-r--r--materialsystem/stdshaders/fxctmp9/sprite_ps20.inc187
1 files changed, 187 insertions, 0 deletions
diff --git a/materialsystem/stdshaders/fxctmp9/sprite_ps20.inc b/materialsystem/stdshaders/fxctmp9/sprite_ps20.inc
new file mode 100644
index 0000000..b047cb0
--- /dev/null
+++ b/materialsystem/stdshaders/fxctmp9/sprite_ps20.inc
@@ -0,0 +1,187 @@
+#include "shaderlib/cshader.h"
+class sprite_ps20_Static_Index
+{
+private:
+ int m_nVERTEXCOLOR;
+#ifdef _DEBUG
+ bool m_bVERTEXCOLOR;
+#endif
+public:
+ void SetVERTEXCOLOR( int i )
+ {
+ Assert( i >= 0 && i <= 1 );
+ m_nVERTEXCOLOR = i;
+#ifdef _DEBUG
+ m_bVERTEXCOLOR = true;
+#endif
+ }
+ void SetVERTEXCOLOR( bool i )
+ {
+ m_nVERTEXCOLOR = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bVERTEXCOLOR = true;
+#endif
+ }
+private:
+ int m_nCONSTANTCOLOR;
+#ifdef _DEBUG
+ bool m_bCONSTANTCOLOR;
+#endif
+public:
+ void SetCONSTANTCOLOR( int i )
+ {
+ Assert( i >= 0 && i <= 1 );
+ m_nCONSTANTCOLOR = i;
+#ifdef _DEBUG
+ m_bCONSTANTCOLOR = true;
+#endif
+ }
+ void SetCONSTANTCOLOR( bool i )
+ {
+ m_nCONSTANTCOLOR = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bCONSTANTCOLOR = true;
+#endif
+ }
+private:
+ int m_nHDRTYPE;
+#ifdef _DEBUG
+ bool m_bHDRTYPE;
+#endif
+public:
+ void SetHDRTYPE( int i )
+ {
+ Assert( i >= 0 && i <= 2 );
+ m_nHDRTYPE = i;
+#ifdef _DEBUG
+ m_bHDRTYPE = true;
+#endif
+ }
+ void SetHDRTYPE( bool i )
+ {
+ m_nHDRTYPE = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bHDRTYPE = true;
+#endif
+ }
+private:
+ int m_nSRGB;
+#ifdef _DEBUG
+ bool m_bSRGB;
+#endif
+public:
+ void SetSRGB( int i )
+ {
+ Assert( i >= 0 && i <= 1 );
+ m_nSRGB = i;
+#ifdef _DEBUG
+ m_bSRGB = true;
+#endif
+ }
+ void SetSRGB( bool i )
+ {
+ m_nSRGB = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bSRGB = true;
+#endif
+ }
+public:
+ sprite_ps20_Static_Index( )
+ {
+#ifdef _DEBUG
+ m_bVERTEXCOLOR = false;
+#endif // _DEBUG
+ m_nVERTEXCOLOR = 0;
+#ifdef _DEBUG
+ m_bCONSTANTCOLOR = false;
+#endif // _DEBUG
+ m_nCONSTANTCOLOR = 0;
+#ifdef _DEBUG
+ m_bHDRTYPE = false;
+#endif // _DEBUG
+ m_nHDRTYPE = 0;
+#ifdef _DEBUG
+ m_bSRGB = false;
+#endif // _DEBUG
+ m_nSRGB = 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_bVERTEXCOLOR && m_bCONSTANTCOLOR && m_bHDRTYPE && m_bSRGB;
+ Assert( bAllStaticVarsDefined );
+#endif // _DEBUG
+ return ( 4 * m_nVERTEXCOLOR ) + ( 8 * m_nCONSTANTCOLOR ) + ( 16 * m_nHDRTYPE ) + ( 48 * m_nSRGB ) + 0;
+ }
+};
+#define shaderStaticTest_sprite_ps20 psh_forgot_to_set_static_VERTEXCOLOR + psh_forgot_to_set_static_CONSTANTCOLOR + psh_forgot_to_set_static_HDRTYPE + psh_forgot_to_set_static_SRGB + 0
+class sprite_ps20_Dynamic_Index
+{
+private:
+ int m_nHDRENABLED;
+#ifdef _DEBUG
+ bool m_bHDRENABLED;
+#endif
+public:
+ void SetHDRENABLED( int i )
+ {
+ Assert( i >= 0 && i <= 1 );
+ m_nHDRENABLED = i;
+#ifdef _DEBUG
+ m_bHDRENABLED = true;
+#endif
+ }
+ void SetHDRENABLED( bool i )
+ {
+ m_nHDRENABLED = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bHDRENABLED = true;
+#endif
+ }
+private:
+ int m_nPIXELFOGTYPE;
+#ifdef _DEBUG
+ bool m_bPIXELFOGTYPE;
+#endif
+public:
+ void SetPIXELFOGTYPE( int i )
+ {
+ Assert( i >= 0 && i <= 1 );
+ m_nPIXELFOGTYPE = i;
+#ifdef _DEBUG
+ m_bPIXELFOGTYPE = true;
+#endif
+ }
+ void SetPIXELFOGTYPE( bool i )
+ {
+ m_nPIXELFOGTYPE = i ? 1 : 0;
+#ifdef _DEBUG
+ m_bPIXELFOGTYPE = true;
+#endif
+ }
+public:
+ sprite_ps20_Dynamic_Index()
+ {
+#ifdef _DEBUG
+ m_bHDRENABLED = false;
+#endif // _DEBUG
+ m_nHDRENABLED = 0;
+#ifdef _DEBUG
+ m_bPIXELFOGTYPE = false;
+#endif // _DEBUG
+ m_nPIXELFOGTYPE = 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_bHDRENABLED && m_bPIXELFOGTYPE;
+ Assert( bAllDynamicVarsDefined );
+#endif // _DEBUG
+ return ( 1 * m_nHDRENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
+ }
+};
+#define shaderDynamicTest_sprite_ps20 psh_forgot_to_set_dynamic_HDRENABLED + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0