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.

580 lines
13 KiB

  1. // ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
  2. // ( $DISTANCEALPHA == 0 ) && ( $SOFTEDGES || $OUTLINE )
  3. // $DISTANCEALPHA && $DUALSEQUENCE
  4. // $DISTANCEALPHA && ( $MAXLUMFRAMEBLEND2 || $MAXLUMFRAMEBLEND1 )
  5. // ( $DUALSEQUENCE == 0 ) && ( $SEQUENCE_BLEND_MODE != 0 )
  6. // $PACKED_INTERPOLATOR && ( $ANIMBLEND || $MAXLUMFRAMEBLEND1 || $EXTRACTGREENALPHA || $DUALSEQUENCE )
  7. // defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
  8. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
  9. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
  10. // defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
  11. // ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
  12. #include "shaderlib/cshader.h"
  13. class spritecard_ps20b_Static_Index
  14. {
  15. private:
  16. int m_nDUALSEQUENCE;
  17. #ifdef _DEBUG
  18. bool m_bDUALSEQUENCE;
  19. #endif
  20. public:
  21. void SetDUALSEQUENCE( int i )
  22. {
  23. Assert( i >= 0 && i <= 1 );
  24. m_nDUALSEQUENCE = i;
  25. #ifdef _DEBUG
  26. m_bDUALSEQUENCE = true;
  27. #endif
  28. }
  29. void SetDUALSEQUENCE( bool i )
  30. {
  31. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  32. m_nDUALSEQUENCE = i ? 1 : 0;
  33. #ifdef _DEBUG
  34. m_bDUALSEQUENCE = true;
  35. #endif
  36. }
  37. private:
  38. int m_nSEQUENCE_BLEND_MODE;
  39. #ifdef _DEBUG
  40. bool m_bSEQUENCE_BLEND_MODE;
  41. #endif
  42. public:
  43. void SetSEQUENCE_BLEND_MODE( int i )
  44. {
  45. Assert( i >= 0 && i <= 2 );
  46. m_nSEQUENCE_BLEND_MODE = i;
  47. #ifdef _DEBUG
  48. m_bSEQUENCE_BLEND_MODE = true;
  49. #endif
  50. }
  51. void SetSEQUENCE_BLEND_MODE( bool i )
  52. {
  53. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
  54. m_nSEQUENCE_BLEND_MODE = i ? 1 : 0;
  55. #ifdef _DEBUG
  56. m_bSEQUENCE_BLEND_MODE = true;
  57. #endif
  58. }
  59. private:
  60. int m_nADDBASETEXTURE2;
  61. #ifdef _DEBUG
  62. bool m_bADDBASETEXTURE2;
  63. #endif
  64. public:
  65. void SetADDBASETEXTURE2( int i )
  66. {
  67. Assert( i >= 0 && i <= 1 );
  68. m_nADDBASETEXTURE2 = i;
  69. #ifdef _DEBUG
  70. m_bADDBASETEXTURE2 = true;
  71. #endif
  72. }
  73. void SetADDBASETEXTURE2( bool i )
  74. {
  75. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  76. m_nADDBASETEXTURE2 = i ? 1 : 0;
  77. #ifdef _DEBUG
  78. m_bADDBASETEXTURE2 = true;
  79. #endif
  80. }
  81. private:
  82. int m_nMAXLUMFRAMEBLEND1;
  83. #ifdef _DEBUG
  84. bool m_bMAXLUMFRAMEBLEND1;
  85. #endif
  86. public:
  87. void SetMAXLUMFRAMEBLEND1( int i )
  88. {
  89. Assert( i >= 0 && i <= 1 );
  90. m_nMAXLUMFRAMEBLEND1 = i;
  91. #ifdef _DEBUG
  92. m_bMAXLUMFRAMEBLEND1 = true;
  93. #endif
  94. }
  95. void SetMAXLUMFRAMEBLEND1( bool i )
  96. {
  97. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  98. m_nMAXLUMFRAMEBLEND1 = i ? 1 : 0;
  99. #ifdef _DEBUG
  100. m_bMAXLUMFRAMEBLEND1 = true;
  101. #endif
  102. }
  103. private:
  104. int m_nMAXLUMFRAMEBLEND2;
  105. #ifdef _DEBUG
  106. bool m_bMAXLUMFRAMEBLEND2;
  107. #endif
  108. public:
  109. void SetMAXLUMFRAMEBLEND2( int i )
  110. {
  111. Assert( i >= 0 && i <= 1 );
  112. m_nMAXLUMFRAMEBLEND2 = i;
  113. #ifdef _DEBUG
  114. m_bMAXLUMFRAMEBLEND2 = true;
  115. #endif
  116. }
  117. void SetMAXLUMFRAMEBLEND2( bool i )
  118. {
  119. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  120. m_nMAXLUMFRAMEBLEND2 = i ? 1 : 0;
  121. #ifdef _DEBUG
  122. m_bMAXLUMFRAMEBLEND2 = true;
  123. #endif
  124. }
  125. private:
  126. int m_nEXTRACTGREENALPHA;
  127. #ifdef _DEBUG
  128. bool m_bEXTRACTGREENALPHA;
  129. #endif
  130. public:
  131. void SetEXTRACTGREENALPHA( int i )
  132. {
  133. Assert( i >= 0 && i <= 1 );
  134. m_nEXTRACTGREENALPHA = i;
  135. #ifdef _DEBUG
  136. m_bEXTRACTGREENALPHA = true;
  137. #endif
  138. }
  139. void SetEXTRACTGREENALPHA( bool i )
  140. {
  141. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  142. m_nEXTRACTGREENALPHA = i ? 1 : 0;
  143. #ifdef _DEBUG
  144. m_bEXTRACTGREENALPHA = true;
  145. #endif
  146. }
  147. private:
  148. int m_nCOLORRAMP;
  149. #ifdef _DEBUG
  150. bool m_bCOLORRAMP;
  151. #endif
  152. public:
  153. void SetCOLORRAMP( int i )
  154. {
  155. Assert( i >= 0 && i <= 1 );
  156. m_nCOLORRAMP = i;
  157. #ifdef _DEBUG
  158. m_bCOLORRAMP = true;
  159. #endif
  160. }
  161. void SetCOLORRAMP( bool i )
  162. {
  163. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  164. m_nCOLORRAMP = i ? 1 : 0;
  165. #ifdef _DEBUG
  166. m_bCOLORRAMP = true;
  167. #endif
  168. }
  169. private:
  170. int m_nANIMBLEND;
  171. #ifdef _DEBUG
  172. bool m_bANIMBLEND;
  173. #endif
  174. public:
  175. void SetANIMBLEND( int i )
  176. {
  177. Assert( i >= 0 && i <= 1 );
  178. m_nANIMBLEND = i;
  179. #ifdef _DEBUG
  180. m_bANIMBLEND = true;
  181. #endif
  182. }
  183. void SetANIMBLEND( bool i )
  184. {
  185. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  186. m_nANIMBLEND = i ? 1 : 0;
  187. #ifdef _DEBUG
  188. m_bANIMBLEND = true;
  189. #endif
  190. }
  191. private:
  192. int m_nADDSELF;
  193. #ifdef _DEBUG
  194. bool m_bADDSELF;
  195. #endif
  196. public:
  197. void SetADDSELF( int i )
  198. {
  199. Assert( i >= 0 && i <= 1 );
  200. m_nADDSELF = i;
  201. #ifdef _DEBUG
  202. m_bADDSELF = true;
  203. #endif
  204. }
  205. void SetADDSELF( bool i )
  206. {
  207. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  208. m_nADDSELF = i ? 1 : 0;
  209. #ifdef _DEBUG
  210. m_bADDSELF = true;
  211. #endif
  212. }
  213. private:
  214. int m_nMOD2X;
  215. #ifdef _DEBUG
  216. bool m_bMOD2X;
  217. #endif
  218. public:
  219. void SetMOD2X( int i )
  220. {
  221. Assert( i >= 0 && i <= 1 );
  222. m_nMOD2X = i;
  223. #ifdef _DEBUG
  224. m_bMOD2X = true;
  225. #endif
  226. }
  227. void SetMOD2X( bool i )
  228. {
  229. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  230. m_nMOD2X = i ? 1 : 0;
  231. #ifdef _DEBUG
  232. m_bMOD2X = true;
  233. #endif
  234. }
  235. private:
  236. int m_nDEPTHBLEND;
  237. #ifdef _DEBUG
  238. bool m_bDEPTHBLEND;
  239. #endif
  240. public:
  241. void SetDEPTHBLEND( int i )
  242. {
  243. Assert( i >= 0 && i <= 1 );
  244. m_nDEPTHBLEND = i;
  245. #ifdef _DEBUG
  246. m_bDEPTHBLEND = true;
  247. #endif
  248. }
  249. void SetDEPTHBLEND( bool i )
  250. {
  251. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  252. m_nDEPTHBLEND = i ? 1 : 0;
  253. #ifdef _DEBUG
  254. m_bDEPTHBLEND = true;
  255. #endif
  256. }
  257. private:
  258. int m_nINVERSEDEPTHBLEND;
  259. #ifdef _DEBUG
  260. bool m_bINVERSEDEPTHBLEND;
  261. #endif
  262. public:
  263. void SetINVERSEDEPTHBLEND( int i )
  264. {
  265. Assert( i >= 0 && i <= 0 );
  266. m_nINVERSEDEPTHBLEND = i;
  267. #ifdef _DEBUG
  268. m_bINVERSEDEPTHBLEND = true;
  269. #endif
  270. }
  271. void SetINVERSEDEPTHBLEND( bool i )
  272. {
  273. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
  274. m_nINVERSEDEPTHBLEND = i ? 1 : 0;
  275. #ifdef _DEBUG
  276. m_bINVERSEDEPTHBLEND = true;
  277. #endif
  278. }
  279. private:
  280. int m_nSHADER_SRGB_READ;
  281. #ifdef _DEBUG
  282. bool m_bSHADER_SRGB_READ;
  283. #endif
  284. public:
  285. void SetSHADER_SRGB_READ( int i )
  286. {
  287. Assert( i >= 0 && i <= 0 );
  288. m_nSHADER_SRGB_READ = i;
  289. #ifdef _DEBUG
  290. m_bSHADER_SRGB_READ = true;
  291. #endif
  292. }
  293. void SetSHADER_SRGB_READ( bool i )
  294. {
  295. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
  296. m_nSHADER_SRGB_READ = i ? 1 : 0;
  297. #ifdef _DEBUG
  298. m_bSHADER_SRGB_READ = true;
  299. #endif
  300. }
  301. private:
  302. int m_nCOLOR_LERP_PS;
  303. #ifdef _DEBUG
  304. bool m_bCOLOR_LERP_PS;
  305. #endif
  306. public:
  307. void SetCOLOR_LERP_PS( int i )
  308. {
  309. Assert( i >= 0 && i <= 1 );
  310. m_nCOLOR_LERP_PS = i;
  311. #ifdef _DEBUG
  312. m_bCOLOR_LERP_PS = true;
  313. #endif
  314. }
  315. void SetCOLOR_LERP_PS( bool i )
  316. {
  317. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  318. m_nCOLOR_LERP_PS = i ? 1 : 0;
  319. #ifdef _DEBUG
  320. m_bCOLOR_LERP_PS = true;
  321. #endif
  322. }
  323. private:
  324. int m_nPACKED_INTERPOLATOR;
  325. #ifdef _DEBUG
  326. bool m_bPACKED_INTERPOLATOR;
  327. #endif
  328. public:
  329. void SetPACKED_INTERPOLATOR( int i )
  330. {
  331. Assert( i >= 0 && i <= 1 );
  332. m_nPACKED_INTERPOLATOR = i;
  333. #ifdef _DEBUG
  334. m_bPACKED_INTERPOLATOR = true;
  335. #endif
  336. }
  337. void SetPACKED_INTERPOLATOR( bool i )
  338. {
  339. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  340. m_nPACKED_INTERPOLATOR = i ? 1 : 0;
  341. #ifdef _DEBUG
  342. m_bPACKED_INTERPOLATOR = true;
  343. #endif
  344. }
  345. private:
  346. int m_nDISTANCEALPHA;
  347. #ifdef _DEBUG
  348. bool m_bDISTANCEALPHA;
  349. #endif
  350. public:
  351. void SetDISTANCEALPHA( int i )
  352. {
  353. Assert( i >= 0 && i <= 1 );
  354. m_nDISTANCEALPHA = i;
  355. #ifdef _DEBUG
  356. m_bDISTANCEALPHA = true;
  357. #endif
  358. }
  359. void SetDISTANCEALPHA( bool i )
  360. {
  361. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  362. m_nDISTANCEALPHA = i ? 1 : 0;
  363. #ifdef _DEBUG
  364. m_bDISTANCEALPHA = true;
  365. #endif
  366. }
  367. private:
  368. int m_nSOFTEDGES;
  369. #ifdef _DEBUG
  370. bool m_bSOFTEDGES;
  371. #endif
  372. public:
  373. void SetSOFTEDGES( int i )
  374. {
  375. Assert( i >= 0 && i <= 1 );
  376. m_nSOFTEDGES = i;
  377. #ifdef _DEBUG
  378. m_bSOFTEDGES = true;
  379. #endif
  380. }
  381. void SetSOFTEDGES( bool i )
  382. {
  383. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  384. m_nSOFTEDGES = i ? 1 : 0;
  385. #ifdef _DEBUG
  386. m_bSOFTEDGES = true;
  387. #endif
  388. }
  389. private:
  390. int m_nOUTLINE;
  391. #ifdef _DEBUG
  392. bool m_bOUTLINE;
  393. #endif
  394. public:
  395. void SetOUTLINE( int i )
  396. {
  397. Assert( i >= 0 && i <= 1 );
  398. m_nOUTLINE = i;
  399. #ifdef _DEBUG
  400. m_bOUTLINE = true;
  401. #endif
  402. }
  403. void SetOUTLINE( bool i )
  404. {
  405. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  406. m_nOUTLINE = i ? 1 : 0;
  407. #ifdef _DEBUG
  408. m_bOUTLINE = true;
  409. #endif
  410. }
  411. private:
  412. int m_nMULOUTPUTBYALPHA;
  413. #ifdef _DEBUG
  414. bool m_bMULOUTPUTBYALPHA;
  415. #endif
  416. public:
  417. void SetMULOUTPUTBYALPHA( int i )
  418. {
  419. Assert( i >= 0 && i <= 1 );
  420. m_nMULOUTPUTBYALPHA = i;
  421. #ifdef _DEBUG
  422. m_bMULOUTPUTBYALPHA = true;
  423. #endif
  424. }
  425. void SetMULOUTPUTBYALPHA( bool i )
  426. {
  427. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  428. m_nMULOUTPUTBYALPHA = i ? 1 : 0;
  429. #ifdef _DEBUG
  430. m_bMULOUTPUTBYALPHA = true;
  431. #endif
  432. }
  433. public:
  434. // CONSTRUCTOR
  435. spritecard_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  436. {
  437. #ifdef _DEBUG
  438. m_bDUALSEQUENCE = false;
  439. #endif // _DEBUG
  440. m_nDUALSEQUENCE = 0;
  441. #ifdef _DEBUG
  442. m_bSEQUENCE_BLEND_MODE = false;
  443. #endif // _DEBUG
  444. m_nSEQUENCE_BLEND_MODE = 0;
  445. #ifdef _DEBUG
  446. m_bADDBASETEXTURE2 = false;
  447. #endif // _DEBUG
  448. m_nADDBASETEXTURE2 = 0;
  449. #ifdef _DEBUG
  450. m_bMAXLUMFRAMEBLEND1 = false;
  451. #endif // _DEBUG
  452. m_nMAXLUMFRAMEBLEND1 = 0;
  453. #ifdef _DEBUG
  454. m_bMAXLUMFRAMEBLEND2 = false;
  455. #endif // _DEBUG
  456. m_nMAXLUMFRAMEBLEND2 = 0;
  457. #ifdef _DEBUG
  458. m_bEXTRACTGREENALPHA = false;
  459. #endif // _DEBUG
  460. m_nEXTRACTGREENALPHA = 0;
  461. #ifdef _DEBUG
  462. m_bCOLORRAMP = false;
  463. #endif // _DEBUG
  464. m_nCOLORRAMP = 0;
  465. #ifdef _DEBUG
  466. m_bANIMBLEND = false;
  467. #endif // _DEBUG
  468. m_nANIMBLEND = 0;
  469. #ifdef _DEBUG
  470. m_bADDSELF = false;
  471. #endif // _DEBUG
  472. m_nADDSELF = 0;
  473. #ifdef _DEBUG
  474. m_bMOD2X = false;
  475. #endif // _DEBUG
  476. m_nMOD2X = 0;
  477. #ifdef _DEBUG
  478. m_bDEPTHBLEND = false;
  479. #endif // _DEBUG
  480. m_nDEPTHBLEND = 0;
  481. #ifdef _DEBUG
  482. m_bINVERSEDEPTHBLEND = false;
  483. #endif // _DEBUG
  484. m_nINVERSEDEPTHBLEND = 0;
  485. #ifdef _DEBUG
  486. m_bSHADER_SRGB_READ = false;
  487. #endif // _DEBUG
  488. m_nSHADER_SRGB_READ = 0;
  489. #ifdef _DEBUG
  490. m_bCOLOR_LERP_PS = false;
  491. #endif // _DEBUG
  492. m_nCOLOR_LERP_PS = 0;
  493. #ifdef _DEBUG
  494. m_bPACKED_INTERPOLATOR = false;
  495. #endif // _DEBUG
  496. m_nPACKED_INTERPOLATOR = 0;
  497. #ifdef _DEBUG
  498. m_bDISTANCEALPHA = false;
  499. #endif // _DEBUG
  500. m_nDISTANCEALPHA = 0;
  501. #ifdef _DEBUG
  502. m_bSOFTEDGES = false;
  503. #endif // _DEBUG
  504. m_nSOFTEDGES = 0;
  505. #ifdef _DEBUG
  506. m_bOUTLINE = false;
  507. #endif // _DEBUG
  508. m_nOUTLINE = 0;
  509. #ifdef _DEBUG
  510. m_bMULOUTPUTBYALPHA = false;
  511. #endif // _DEBUG
  512. m_nMULOUTPUTBYALPHA = 0;
  513. }
  514. int GetIndex()
  515. {
  516. // Asserts to make sure that we aren't using any skipped combinations.
  517. // Asserts to make sure that we are setting all of the combination vars.
  518. #ifdef _DEBUG
  519. bool bAllStaticVarsDefined = m_bDUALSEQUENCE && m_bSEQUENCE_BLEND_MODE && m_bADDBASETEXTURE2 && m_bMAXLUMFRAMEBLEND1 && m_bMAXLUMFRAMEBLEND2 && m_bEXTRACTGREENALPHA && m_bCOLORRAMP && m_bANIMBLEND && m_bADDSELF && m_bMOD2X && m_bDEPTHBLEND && m_bINVERSEDEPTHBLEND && m_bSHADER_SRGB_READ && m_bCOLOR_LERP_PS && m_bPACKED_INTERPOLATOR && m_bDISTANCEALPHA && m_bSOFTEDGES && m_bOUTLINE && m_bMULOUTPUTBYALPHA;
  520. Assert( bAllStaticVarsDefined );
  521. #endif // _DEBUG
  522. return ( 1 * m_nDUALSEQUENCE ) + ( 2 * m_nSEQUENCE_BLEND_MODE ) + ( 6 * m_nADDBASETEXTURE2 ) + ( 12 * m_nMAXLUMFRAMEBLEND1 ) + ( 24 * m_nMAXLUMFRAMEBLEND2 ) + ( 48 * m_nEXTRACTGREENALPHA ) + ( 96 * m_nCOLORRAMP ) + ( 192 * m_nANIMBLEND ) + ( 384 * m_nADDSELF ) + ( 768 * m_nMOD2X ) + ( 1536 * m_nDEPTHBLEND ) + ( 3072 * m_nINVERSEDEPTHBLEND ) + ( 3072 * m_nSHADER_SRGB_READ ) + ( 3072 * m_nCOLOR_LERP_PS ) + ( 6144 * m_nPACKED_INTERPOLATOR ) + ( 12288 * m_nDISTANCEALPHA ) + ( 24576 * m_nSOFTEDGES ) + ( 49152 * m_nOUTLINE ) + ( 98304 * m_nMULOUTPUTBYALPHA ) + 0;
  523. }
  524. };
  525. #define shaderStaticTest_spritecard_ps20b psh_forgot_to_set_static_DUALSEQUENCE + psh_forgot_to_set_static_SEQUENCE_BLEND_MODE + psh_forgot_to_set_static_ADDBASETEXTURE2 + psh_forgot_to_set_static_MAXLUMFRAMEBLEND1 + psh_forgot_to_set_static_MAXLUMFRAMEBLEND2 + psh_forgot_to_set_static_EXTRACTGREENALPHA + psh_forgot_to_set_static_COLORRAMP + psh_forgot_to_set_static_ANIMBLEND + psh_forgot_to_set_static_ADDSELF + psh_forgot_to_set_static_MOD2X + psh_forgot_to_set_static_DEPTHBLEND + psh_forgot_to_set_static_INVERSEDEPTHBLEND + psh_forgot_to_set_static_SHADER_SRGB_READ + psh_forgot_to_set_static_COLOR_LERP_PS + psh_forgot_to_set_static_PACKED_INTERPOLATOR + psh_forgot_to_set_static_DISTANCEALPHA + psh_forgot_to_set_static_SOFTEDGES + psh_forgot_to_set_static_OUTLINE + psh_forgot_to_set_static_MULOUTPUTBYALPHA + 0
  526. class spritecard_ps20b_Dynamic_Index
  527. {
  528. public:
  529. // CONSTRUCTOR
  530. spritecard_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  531. {
  532. }
  533. int GetIndex()
  534. {
  535. // Asserts to make sure that we aren't using any skipped combinations.
  536. // Asserts to make sure that we are setting all of the combination vars.
  537. #ifdef _DEBUG
  538. #endif // _DEBUG
  539. return 0;
  540. }
  541. };
  542. #define shaderDynamicTest_spritecard_ps20b 0
  543. static const ShaderComboInformation_t s_StaticComboArray_spritecard_ps20b[19] =
  544. {
  545. { "DUALSEQUENCE", 0, 1 },
  546. { "SEQUENCE_BLEND_MODE", 0, 2 },
  547. { "ADDBASETEXTURE2", 0, 1 },
  548. { "MAXLUMFRAMEBLEND1", 0, 1 },
  549. { "MAXLUMFRAMEBLEND2", 0, 1 },
  550. { "EXTRACTGREENALPHA", 0, 1 },
  551. { "COLORRAMP", 0, 1 },
  552. { "ANIMBLEND", 0, 1 },
  553. { "ADDSELF", 0, 1 },
  554. { "MOD2X", 0, 1 },
  555. { "DEPTHBLEND", 0, 1 },
  556. { "INVERSEDEPTHBLEND", 0, 0 },
  557. { "SHADER_SRGB_READ", 0, 0 },
  558. { "COLOR_LERP_PS", 0, 1 },
  559. { "PACKED_INTERPOLATOR", 0, 1 },
  560. { "DISTANCEALPHA", 0, 1 },
  561. { "SOFTEDGES", 0, 1 },
  562. { "OUTLINE", 0, 1 },
  563. { "MULOUTPUTBYALPHA", 0, 1 },
  564. };
  565. static const ShaderComboSemantics_t spritecard_ps20b_combos =
  566. {
  567. "spritecard_ps20b", NULL, 0, s_StaticComboArray_spritecard_ps20b, 19
  568. };
  569. class ConstructMe_spritecard_ps20b
  570. {
  571. public:
  572. ConstructMe_spritecard_ps20b()
  573. {
  574. GetShaderDLL()->AddShaderComboInformation( &spritecard_ps20b_combos );
  575. }
  576. };
  577. static ConstructMe_spritecard_ps20b s_ConstructMe_spritecard_ps20b;