Team Fortress 2 Source Code as on 22/4/2020
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.

60 lines
1.2 KiB

  1. #include "shaderlib/cshader.h"
  2. class introscreenspaceeffect_ps11_Static_Index
  3. {
  4. public:
  5. introscreenspaceeffect_ps11_Static_Index( )
  6. {
  7. }
  8. int GetIndex()
  9. {
  10. // Asserts to make sure that we aren't using any skipped combinations.
  11. // Asserts to make sure that we are setting all of the combination vars.
  12. #ifdef _DEBUG
  13. #endif // _DEBUG
  14. return 0;
  15. }
  16. };
  17. #define shaderStaticTest_introscreenspaceeffect_ps11 0
  18. class introscreenspaceeffect_ps11_Dynamic_Index
  19. {
  20. private:
  21. int m_nMODE;
  22. #ifdef _DEBUG
  23. bool m_bMODE;
  24. #endif
  25. public:
  26. void SetMODE( int i )
  27. {
  28. Assert( i >= 0 && i <= 9 );
  29. m_nMODE = i;
  30. #ifdef _DEBUG
  31. m_bMODE = true;
  32. #endif
  33. }
  34. void SetMODE( bool i )
  35. {
  36. m_nMODE = i ? 1 : 0;
  37. #ifdef _DEBUG
  38. m_bMODE = true;
  39. #endif
  40. }
  41. public:
  42. introscreenspaceeffect_ps11_Dynamic_Index()
  43. {
  44. #ifdef _DEBUG
  45. m_bMODE = false;
  46. #endif // _DEBUG
  47. m_nMODE = 0;
  48. }
  49. int GetIndex()
  50. {
  51. // Asserts to make sure that we aren't using any skipped combinations.
  52. // Asserts to make sure that we are setting all of the combination vars.
  53. #ifdef _DEBUG
  54. bool bAllDynamicVarsDefined = m_bMODE;
  55. Assert( bAllDynamicVarsDefined );
  56. #endif // _DEBUG
  57. return ( 1 * m_nMODE ) + 0;
  58. }
  59. };
  60. #define shaderDynamicTest_introscreenspaceeffect_ps11 psh_forgot_to_set_dynamic_MODE + 0