Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
Introduction to the DirectX 9 Shader Models - Nvidia
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