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.

59 lines
1.3 KiB

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