Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.6 KiB

  1. // ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
  2. // defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
  3. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
  4. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
  5. // defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
  6. // ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
  7. #include "shaderlib/cshader.h"
  8. class bufferclearobeystencil_ps20b_Static_Index
  9. {
  10. private:
  11. int m_nRELOADZCULL;
  12. #ifdef _DEBUG
  13. bool m_bRELOADZCULL;
  14. #endif
  15. public:
  16. void SetRELOADZCULL( int i )
  17. {
  18. Assert( i >= 0 && i <= 0 );
  19. m_nRELOADZCULL = i;
  20. #ifdef _DEBUG
  21. m_bRELOADZCULL = true;
  22. #endif
  23. }
  24. void SetRELOADZCULL( bool i )
  25. {
  26. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
  27. m_nRELOADZCULL = i ? 1 : 0;
  28. #ifdef _DEBUG
  29. m_bRELOADZCULL = true;
  30. #endif
  31. }
  32. public:
  33. // CONSTRUCTOR
  34. bufferclearobeystencil_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  35. {
  36. #ifdef _DEBUG
  37. m_bRELOADZCULL = false;
  38. #endif // _DEBUG
  39. m_nRELOADZCULL = 0;
  40. }
  41. int GetIndex()
  42. {
  43. // Asserts to make sure that we aren't using any skipped combinations.
  44. // Asserts to make sure that we are setting all of the combination vars.
  45. #ifdef _DEBUG
  46. bool bAllStaticVarsDefined = m_bRELOADZCULL;
  47. Assert( bAllStaticVarsDefined );
  48. #endif // _DEBUG
  49. return ( 1 * m_nRELOADZCULL ) + 0;
  50. }
  51. };
  52. #define shaderStaticTest_bufferclearobeystencil_ps20b psh_forgot_to_set_static_RELOADZCULL + 0
  53. class bufferclearobeystencil_ps20b_Dynamic_Index
  54. {
  55. public:
  56. // CONSTRUCTOR
  57. bufferclearobeystencil_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  58. {
  59. }
  60. int GetIndex()
  61. {
  62. // Asserts to make sure that we aren't using any skipped combinations.
  63. // Asserts to make sure that we are setting all of the combination vars.
  64. #ifdef _DEBUG
  65. #endif // _DEBUG
  66. return 0;
  67. }
  68. };
  69. #define shaderDynamicTest_bufferclearobeystencil_ps20b 0
  70. static const ShaderComboInformation_t s_StaticComboArray_bufferclearobeystencil_ps20b[1] =
  71. {
  72. { "RELOADZCULL", 0, 0 },
  73. };
  74. static const ShaderComboSemantics_t bufferclearobeystencil_ps20b_combos =
  75. {
  76. "bufferclearobeystencil_ps20b", NULL, 0, s_StaticComboArray_bufferclearobeystencil_ps20b, 1
  77. };
  78. class ConstructMe_bufferclearobeystencil_ps20b
  79. {
  80. public:
  81. ConstructMe_bufferclearobeystencil_ps20b()
  82. {
  83. GetShaderDLL()->AddShaderComboInformation( &bufferclearobeystencil_ps20b_combos );
  84. }
  85. };
  86. static ConstructMe_bufferclearobeystencil_ps20b s_ConstructMe_bufferclearobeystencil_ps20b;