?/TD>
Microsoft DirectX 9.0

Pixel Shader Assembly


This is an example of assembly level pixel shader instructions.

PixelShader = 
asm
{
   ps_1_1
   tex t0            // get texture sample from stage 0
   tex t1            // get texture sample from stage 1
   mul_x2 r0,t1,t0;  // blend them together in an interesting way
};


© 2002 Microsoft Corporation. All rights reserved.