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.

64 lines
1.4 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 ssao_vs20_Static_Index
  5. {
  6. private:
  7. int m_nFINAL;
  8. #ifdef _DEBUG
  9. bool m_bFINAL;
  10. #endif
  11. public:
  12. void SetFINAL( int i )
  13. {
  14. Assert( i >= 0 && i <= 1 );
  15. m_nFINAL = i;
  16. #ifdef _DEBUG
  17. m_bFINAL = true;
  18. #endif
  19. }
  20. void SetFINAL( bool i )
  21. {
  22. m_nFINAL = i ? 1 : 0;
  23. #ifdef _DEBUG
  24. m_bFINAL = true;
  25. #endif
  26. }
  27. public:
  28. // CONSTRUCTOR
  29. ssao_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  30. {
  31. #ifdef _DEBUG
  32. m_bFINAL = false;
  33. #endif // _DEBUG
  34. m_nFINAL = 0;
  35. }
  36. int GetIndex()
  37. {
  38. // Asserts to make sure that we aren't using any skipped combinations.
  39. // Asserts to make sure that we are setting all of the combination vars.
  40. #ifdef _DEBUG
  41. bool bAllStaticVarsDefined = m_bFINAL;
  42. Assert( bAllStaticVarsDefined );
  43. #endif // _DEBUG
  44. return ( 1 * m_nFINAL ) + 0;
  45. }
  46. };
  47. #define shaderStaticTest_ssao_vs20 vsh_forgot_to_set_static_FINAL + 0
  48. class ssao_vs20_Dynamic_Index
  49. {
  50. public:
  51. // CONSTRUCTOR
  52. ssao_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  53. {
  54. }
  55. int GetIndex()
  56. {
  57. // Asserts to make sure that we aren't using any skipped combinations.
  58. // Asserts to make sure that we are setting all of the combination vars.
  59. #ifdef _DEBUG
  60. #endif // _DEBUG
  61. return 0;
  62. }
  63. };
  64. #define shaderDynamicTest_ssao_vs20 0