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.

85 lines
1.9 KiB

  1. #include "shaderlib/cshader.h"
  2. class eyes_ps20b_Static_Index
  3. {
  4. public:
  5. eyes_ps20b_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_eyes_ps20b 0
  18. class eyes_ps20b_Dynamic_Index
  19. {
  20. private:
  21. int m_nWRITE_DEPTH_TO_DESTALPHA;
  22. #ifdef _DEBUG
  23. bool m_bWRITE_DEPTH_TO_DESTALPHA;
  24. #endif
  25. public:
  26. void SetWRITE_DEPTH_TO_DESTALPHA( int i )
  27. {
  28. Assert( i >= 0 && i <= 1 );
  29. m_nWRITE_DEPTH_TO_DESTALPHA = i;
  30. #ifdef _DEBUG
  31. m_bWRITE_DEPTH_TO_DESTALPHA = true;
  32. #endif
  33. }
  34. void SetWRITE_DEPTH_TO_DESTALPHA( bool i )
  35. {
  36. m_nWRITE_DEPTH_TO_DESTALPHA = i ? 1 : 0;
  37. #ifdef _DEBUG
  38. m_bWRITE_DEPTH_TO_DESTALPHA = true;
  39. #endif
  40. }
  41. private:
  42. int m_nPIXELFOGTYPE;
  43. #ifdef _DEBUG
  44. bool m_bPIXELFOGTYPE;
  45. #endif
  46. public:
  47. void SetPIXELFOGTYPE( int i )
  48. {
  49. Assert( i >= 0 && i <= 1 );
  50. m_nPIXELFOGTYPE = i;
  51. #ifdef _DEBUG
  52. m_bPIXELFOGTYPE = true;
  53. #endif
  54. }
  55. void SetPIXELFOGTYPE( bool i )
  56. {
  57. m_nPIXELFOGTYPE = i ? 1 : 0;
  58. #ifdef _DEBUG
  59. m_bPIXELFOGTYPE = true;
  60. #endif
  61. }
  62. public:
  63. eyes_ps20b_Dynamic_Index()
  64. {
  65. #ifdef _DEBUG
  66. m_bWRITE_DEPTH_TO_DESTALPHA = false;
  67. #endif // _DEBUG
  68. m_nWRITE_DEPTH_TO_DESTALPHA = 0;
  69. #ifdef _DEBUG
  70. m_bPIXELFOGTYPE = false;
  71. #endif // _DEBUG
  72. m_nPIXELFOGTYPE = 0;
  73. }
  74. int GetIndex()
  75. {
  76. // Asserts to make sure that we aren't using any skipped combinations.
  77. // Asserts to make sure that we are setting all of the combination vars.
  78. #ifdef _DEBUG
  79. bool bAllDynamicVarsDefined = m_bWRITE_DEPTH_TO_DESTALPHA && m_bPIXELFOGTYPE;
  80. Assert( bAllDynamicVarsDefined );
  81. #endif // _DEBUG
  82. return ( 1 * m_nWRITE_DEPTH_TO_DESTALPHA ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
  83. }
  84. };
  85. #define shaderDynamicTest_eyes_ps20b psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0