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.5 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 introscreenspaceeffect_ps20_Static_Index
  9. {
  10. public:
  11. // CONSTRUCTOR
  12. introscreenspaceeffect_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  13. {
  14. }
  15. int GetIndex()
  16. {
  17. // Asserts to make sure that we aren't using any skipped combinations.
  18. // Asserts to make sure that we are setting all of the combination vars.
  19. #ifdef _DEBUG
  20. #endif // _DEBUG
  21. return 0;
  22. }
  23. };
  24. #define shaderStaticTest_introscreenspaceeffect_ps20 0
  25. class introscreenspaceeffect_ps20_Dynamic_Index
  26. {
  27. private:
  28. int m_nMODE;
  29. #ifdef _DEBUG
  30. bool m_bMODE;
  31. #endif
  32. public:
  33. void SetMODE( int i )
  34. {
  35. Assert( i >= 0 && i <= 9 );
  36. m_nMODE = i;
  37. #ifdef _DEBUG
  38. m_bMODE = true;
  39. #endif
  40. }
  41. void SetMODE( bool i )
  42. {
  43. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 9 );
  44. m_nMODE = i ? 1 : 0;
  45. #ifdef _DEBUG
  46. m_bMODE = true;
  47. #endif
  48. }
  49. public:
  50. // CONSTRUCTOR
  51. introscreenspaceeffect_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  52. {
  53. #ifdef _DEBUG
  54. m_bMODE = false;
  55. #endif // _DEBUG
  56. m_nMODE = 0;
  57. }
  58. int GetIndex()
  59. {
  60. // Asserts to make sure that we aren't using any skipped combinations.
  61. // Asserts to make sure that we are setting all of the combination vars.
  62. #ifdef _DEBUG
  63. bool bAllDynamicVarsDefined = m_bMODE;
  64. Assert( bAllDynamicVarsDefined );
  65. #endif // _DEBUG
  66. return ( 1 * m_nMODE ) + 0;
  67. }
  68. };
  69. #define shaderDynamicTest_introscreenspaceeffect_ps20 psh_forgot_to_set_dynamic_MODE + 0
  70. static const ShaderComboInformation_t s_DynamicComboArray_IntroScreenSpaceEffect_ps20[1] =
  71. {
  72. { "MODE", 0, 9 },
  73. };
  74. static const ShaderComboSemantics_t IntroScreenSpaceEffect_ps20_combos =
  75. {
  76. "IntroScreenSpaceEffect_ps20", s_DynamicComboArray_IntroScreenSpaceEffect_ps20, 1, NULL, 0
  77. };
  78. class ConstructMe_IntroScreenSpaceEffect_ps20
  79. {
  80. public:
  81. ConstructMe_IntroScreenSpaceEffect_ps20()
  82. {
  83. GetShaderDLL()->AddShaderComboInformation( &IntroScreenSpaceEffect_ps20_combos );
  84. }
  85. };
  86. static ConstructMe_IntroScreenSpaceEffect_ps20 s_ConstructMe_IntroScreenSpaceEffect_ps20;