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.

85 lines
2.2 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 debugtextureview_vs20_Static_Index
  5. {
  6. public:
  7. // CONSTRUCTOR
  8. debugtextureview_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  9. {
  10. }
  11. int GetIndex()
  12. {
  13. // Asserts to make sure that we aren't using any skipped combinations.
  14. // Asserts to make sure that we are setting all of the combination vars.
  15. #ifdef _DEBUG
  16. #endif // _DEBUG
  17. return 0;
  18. }
  19. };
  20. #define shaderStaticTest_debugtextureview_vs20 0
  21. class debugtextureview_vs20_Dynamic_Index
  22. {
  23. private:
  24. int m_nCOMPRESSED_VERTS;
  25. #ifdef _DEBUG
  26. bool m_bCOMPRESSED_VERTS;
  27. #endif
  28. public:
  29. void SetCOMPRESSED_VERTS( int i )
  30. {
  31. Assert( i >= 0 && i <= 1 );
  32. m_nCOMPRESSED_VERTS = i;
  33. #ifdef _DEBUG
  34. m_bCOMPRESSED_VERTS = true;
  35. #endif
  36. }
  37. void SetCOMPRESSED_VERTS( bool i )
  38. {
  39. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  40. m_nCOMPRESSED_VERTS = i ? 1 : 0;
  41. #ifdef _DEBUG
  42. m_bCOMPRESSED_VERTS = true;
  43. #endif
  44. }
  45. public:
  46. // CONSTRUCTOR
  47. debugtextureview_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  48. {
  49. #ifdef _DEBUG
  50. m_bCOMPRESSED_VERTS = false;
  51. #endif // _DEBUG
  52. m_nCOMPRESSED_VERTS = 0;
  53. }
  54. int GetIndex()
  55. {
  56. // Asserts to make sure that we aren't using any skipped combinations.
  57. // Asserts to make sure that we are setting all of the combination vars.
  58. #ifdef _DEBUG
  59. bool bAllDynamicVarsDefined = m_bCOMPRESSED_VERTS;
  60. Assert( bAllDynamicVarsDefined );
  61. #endif // _DEBUG
  62. return ( 1 * m_nCOMPRESSED_VERTS ) + 0;
  63. }
  64. };
  65. #define shaderDynamicTest_debugtextureview_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + 0
  66. static const ShaderComboInformation_t s_DynamicComboArray_debugtextureview_vs20[1] =
  67. {
  68. { "COMPRESSED_VERTS", 0, 1 },
  69. };
  70. static const ShaderComboSemantics_t debugtextureview_vs20_combos =
  71. {
  72. "debugtextureview_vs20", s_DynamicComboArray_debugtextureview_vs20, 1, NULL, 0
  73. };
  74. class ConstructMe_debugtextureview_vs20
  75. {
  76. public:
  77. ConstructMe_debugtextureview_vs20()
  78. {
  79. GetShaderDLL()->AddShaderComboInformation( &debugtextureview_vs20_combos );
  80. }
  81. };
  82. static ConstructMe_debugtextureview_vs20 s_ConstructMe_debugtextureview_vs20;