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.

84 lines
1.9 KiB

  1. // ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
  2. #include "shaderlib/cshader.h"
  3. class depthwrite_ps20b_Static_Index
  4. {
  5. public:
  6. // CONSTRUCTOR
  7. depthwrite_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  8. {
  9. }
  10. int GetIndex()
  11. {
  12. // Asserts to make sure that we aren't using any skipped combinations.
  13. // Asserts to make sure that we are setting all of the combination vars.
  14. #ifdef _DEBUG
  15. #endif // _DEBUG
  16. return 0;
  17. }
  18. };
  19. #define shaderStaticTest_depthwrite_ps20b 0
  20. class depthwrite_ps20b_Dynamic_Index
  21. {
  22. private:
  23. int m_nALPHACLIP;
  24. #ifdef _DEBUG
  25. bool m_bALPHACLIP;
  26. #endif
  27. public:
  28. void SetALPHACLIP( int i )
  29. {
  30. Assert( i >= 0 && i <= 1 );
  31. m_nALPHACLIP = i;
  32. #ifdef _DEBUG
  33. m_bALPHACLIP = true;
  34. #endif
  35. }
  36. void SetALPHACLIP( bool i )
  37. {
  38. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  39. m_nALPHACLIP = i ? 1 : 0;
  40. #ifdef _DEBUG
  41. m_bALPHACLIP = true;
  42. #endif
  43. }
  44. public:
  45. // CONSTRUCTOR
  46. depthwrite_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  47. {
  48. #ifdef _DEBUG
  49. m_bALPHACLIP = false;
  50. #endif // _DEBUG
  51. m_nALPHACLIP = 0;
  52. }
  53. int GetIndex()
  54. {
  55. // Asserts to make sure that we aren't using any skipped combinations.
  56. // Asserts to make sure that we are setting all of the combination vars.
  57. #ifdef _DEBUG
  58. bool bAllDynamicVarsDefined = m_bALPHACLIP;
  59. Assert( bAllDynamicVarsDefined );
  60. #endif // _DEBUG
  61. return ( 1 * m_nALPHACLIP ) + 0;
  62. }
  63. };
  64. #define shaderDynamicTest_depthwrite_ps20b psh_forgot_to_set_dynamic_ALPHACLIP + 0
  65. static const ShaderComboInformation_t s_DynamicComboArray_depthwrite_ps20b[1] =
  66. {
  67. { "ALPHACLIP", 0, 1 },
  68. };
  69. static const ShaderComboSemantics_t depthwrite_ps20b_combos =
  70. {
  71. "depthwrite_ps20b", s_DynamicComboArray_depthwrite_ps20b, 1, NULL, 0
  72. };
  73. class ConstructMe_depthwrite_ps20b
  74. {
  75. public:
  76. ConstructMe_depthwrite_ps20b()
  77. {
  78. GetShaderDLL()->AddShaderComboInformation( &depthwrite_ps20b_combos );
  79. }
  80. };
  81. static ConstructMe_depthwrite_ps20b s_ConstructMe_depthwrite_ps20b;