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
1.9 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 watercheap_vs20_Static_Index
  5. {
  6. private:
  7. int m_nBLEND;
  8. #ifdef _DEBUG
  9. bool m_bBLEND;
  10. #endif
  11. public:
  12. void SetBLEND( int i )
  13. {
  14. Assert( i >= 0 && i <= 1 );
  15. m_nBLEND = i;
  16. #ifdef _DEBUG
  17. m_bBLEND = true;
  18. #endif
  19. }
  20. void SetBLEND( bool i )
  21. {
  22. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  23. m_nBLEND = i ? 1 : 0;
  24. #ifdef _DEBUG
  25. m_bBLEND = true;
  26. #endif
  27. }
  28. public:
  29. // CONSTRUCTOR
  30. watercheap_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  31. {
  32. #ifdef _DEBUG
  33. m_bBLEND = false;
  34. #endif // _DEBUG
  35. m_nBLEND = 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_bBLEND;
  43. Assert( bAllStaticVarsDefined );
  44. #endif // _DEBUG
  45. return ( 1 * m_nBLEND ) + 0;
  46. }
  47. };
  48. #define shaderStaticTest_watercheap_vs20 vsh_forgot_to_set_static_BLEND + 0
  49. class watercheap_vs20_Dynamic_Index
  50. {
  51. public:
  52. // CONSTRUCTOR
  53. watercheap_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_watercheap_vs20 0
  66. static const ShaderComboInformation_t s_StaticComboArray_watercheap_vs20[1] =
  67. {
  68. { "BLEND", 0, 1 },
  69. };
  70. static const ShaderComboSemantics_t watercheap_vs20_combos =
  71. {
  72. "watercheap_vs20", NULL, 0, s_StaticComboArray_watercheap_vs20, 1
  73. };
  74. class ConstructMe_watercheap_vs20
  75. {
  76. public:
  77. ConstructMe_watercheap_vs20()
  78. {
  79. GetShaderDLL()->AddShaderComboInformation( &watercheap_vs20_combos );
  80. }
  81. };
  82. static ConstructMe_watercheap_vs20 s_ConstructMe_watercheap_vs20;