30.04.2014 Views

Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia

Introduction to the DirectX 9 Shader Models - Nvidia

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Pixel <strong>Shader</strong> 2.x<br />

• Static flow control<br />

– IF-ELSE-ENDIF, CALL / CALLNZ-RET, REP-ENDREP<br />

– As in vertex shader (less LOOP-ENDLOOP)<br />

• Gradient instructions and texture fetch<br />

– DSX, DSY, TEXLDD<br />

• Predication<br />

– As in vertex shader 2.x<br />

• Arbitrary swizzling<br />

– Use <strong>the</strong>m <strong>to</strong> pack registers

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!