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.

Declarations<br />

Stream 0<br />

Stream1<br />

Stream 0<br />

Vertex layout<br />

pos tc0 norm<br />

Declaration<br />

pos tc0 norm<br />

asm:<br />

vs 1.1<br />

dcl_position v0<br />

dcl_normal v1<br />

dcl_texcoord0 v2<br />

mov r0, v0<br />

…<br />

HLSL:<br />

VS_OUTPUT main (<br />

float4 vPosition : POSITION,<br />

float3 vNormal : NORMAL,<br />

float2 vTC0 : TEXCOORD0)<br />

{<br />

…<br />

}

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

Saved successfully!

Ooh no, something went wrong!