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.

Vertex <strong>Shader</strong> Predication - ASM<br />

Sim<br />

With Predication :<br />

def c0, 0.0f, 0.0f, 0.0f, 0.0f<br />

. . .<br />

setp_gt p0, r1.w, c0.w<br />

p0 add r0, r0, r2<br />

Without Predication :<br />

def c0, 0.0f, 0.0f, 0.0f, 0.0f<br />

. . .<br />

sgt r3.w, r1.w, c0.w<br />

mad r0, r3.w, r2, r0

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

Saved successfully!

Ooh no, something went wrong!