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.

84 lines
1.7 KiB

  1. class unlitgeneric_lightingonly_vs11_Static_Index
  2. {
  3. public:
  4. unlitgeneric_lightingonly_vs11_Static_Index()
  5. {
  6. }
  7. int GetIndex()
  8. {
  9. // Asserts to make sure that we aren't using any skipped combinations.
  10. // Asserts to make sure that we are setting all of the combination vars.
  11. #ifdef _DEBUG
  12. #endif // _DEBUG
  13. return 0;
  14. }
  15. };
  16. #define shaderStaticTest_unlitgeneric_lightingonly_vs11 0
  17. class unlitgeneric_lightingonly_vs11_Dynamic_Index
  18. {
  19. private:
  20. int m_nDOWATERFOG;
  21. #ifdef _DEBUG
  22. bool m_bDOWATERFOG;
  23. #endif
  24. public:
  25. void SetDOWATERFOG( int i )
  26. {
  27. Assert( i >= 0 && i <= 1 );
  28. m_nDOWATERFOG = i;
  29. #ifdef _DEBUG
  30. m_bDOWATERFOG = true;
  31. #endif
  32. }
  33. void SetDOWATERFOG( bool i )
  34. {
  35. m_nDOWATERFOG = i ? 1 : 0;
  36. #ifdef _DEBUG
  37. m_bDOWATERFOG = true;
  38. #endif
  39. }
  40. private:
  41. int m_nNUM_BONES;
  42. #ifdef _DEBUG
  43. bool m_bNUM_BONES;
  44. #endif
  45. public:
  46. void SetNUM_BONES( int i )
  47. {
  48. Assert( i >= 0 && i <= 3 );
  49. m_nNUM_BONES = i;
  50. #ifdef _DEBUG
  51. m_bNUM_BONES = true;
  52. #endif
  53. }
  54. void SetNUM_BONES( bool i )
  55. {
  56. m_nNUM_BONES = i ? 1 : 0;
  57. #ifdef _DEBUG
  58. m_bNUM_BONES = true;
  59. #endif
  60. }
  61. public:
  62. unlitgeneric_lightingonly_vs11_Dynamic_Index()
  63. {
  64. #ifdef _DEBUG
  65. m_bDOWATERFOG = false;
  66. #endif // _DEBUG
  67. m_nDOWATERFOG = 0;
  68. #ifdef _DEBUG
  69. m_bNUM_BONES = false;
  70. #endif // _DEBUG
  71. m_nNUM_BONES = 0;
  72. }
  73. int GetIndex()
  74. {
  75. // Asserts to make sure that we aren't using any skipped combinations.
  76. // Asserts to make sure that we are setting all of the combination vars.
  77. #ifdef _DEBUG
  78. bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bNUM_BONES;
  79. Assert( bAllDynamicVarsDefined );
  80. #endif // _DEBUG
  81. return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nNUM_BONES ) + 0;
  82. }
  83. };
  84. #define shaderDynamicTest_unlitgeneric_lightingonly_vs11 vsh_forgot_to_set_dynamic_DOWATERFOG + vsh_forgot_to_set_dynamic_NUM_BONES + 0