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.

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