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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Arbitrary swizzling<br />

• Extremely useful<br />

– For extracting components (r0.x = tcoord0.w, r0.y =<br />

tcoord1.w)<br />

– For replicating components (r0 = light.zzzz)<br />

• Pack more data per register<br />

– Especially temporaries (r0.xy, r0.zw)<br />

– On some HW, fewer temporaries yields better<br />

performance

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

Saved successfully!

Ooh no, something went wrong!