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.

71 lines
1.2 KiB

  1. #ifdef PIXELSHADER
  2. #define VS_OUTPUT PS_INPUT
  3. #endif
  4. #ifndef ADDBASETEXTURE2
  5. #error "missing define"
  6. #endif
  7. #ifndef EXTRACTGREENALPHA
  8. #error "missing define"
  9. #endif
  10. #ifndef ANIMBLEND
  11. #error "missing define"
  12. #endif
  13. #ifndef MAXLUMFRAMEBLEND1
  14. #error "missing define"
  15. #endif
  16. #ifndef DUALSEQUENCE
  17. #error "missing define"
  18. #endif
  19. #ifndef PACKED_INTERPOLATOR
  20. #error "missing define"
  21. #endif
  22. #define HAS_BLENDFACTOR0 ( ANIMBLEND || MAXLUMFRAMEBLEND1 || EXTRACTGREENALPHA || DUALSEQUENCE )
  23. struct VS_OUTPUT
  24. {
  25. #ifndef PIXELSHADER
  26. float4 projPos : POSITION;
  27. #endif
  28. float4 texCoord0_1 : TEXCOORD0;
  29. #if ( PACKED_INTERPOLATOR == 0 )
  30. // in packed-interpolator case, texCoord0_1.zw store argbcolor.ra
  31. float4 argbcolor : COLOR;
  32. #endif
  33. #if HAS_BLENDFACTOR0
  34. float4 blendfactor0 : TEXCOORD1;
  35. #endif
  36. #if ADDBASETEXTURE2
  37. float2 texCoord2 : TEXCOORD2;
  38. #endif
  39. #if EXTRACTGREENALPHA
  40. float4 blendfactor1 : TEXCOORD3;
  41. #endif
  42. #if DUALSEQUENCE
  43. float4 vSeq2TexCoord0_1 : TEXCOORD4;
  44. #else
  45. float4 vecOutlineTint : TEXCOORD4;
  46. #endif
  47. #if DEPTHBLEND
  48. float4 vProjPos : TEXCOORD5;
  49. #endif
  50. #ifndef PIXELSHADER
  51. #if !defined( _X360 ) && !defined( SHADER_MODEL_VS_3_0 )
  52. float fog : FOG;
  53. #endif
  54. #endif
  55. };