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.

85 lines
2.1 KiB

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