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.
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 />
}