?/TD>
Microsoft DirectX 9.0

Instructions - ps_2_0


This section contains reference information for the pixel shader version 2_0 instructions.

There are several types of pixel shader instructions, as shown in the table. Columns to the right mean the following:

Instruction Set

NameDescriptionInstruction slotsSetupArithmeticMacro-opsTextureNew
absAbsolute value1xx
addAdd two vectors1x
cmpCompare source to 01x
crsCross product2xx
dclMap a vertex element type to an input vertex register0xx
dcl_textureTypeDeclare the texture coordinate dimension for a sampler register0xx
defDefine constants0x
dp2add2-D dot product and add2xx
dp33-D dot product1x
dp44-D dot product1x
expFull precision 2x1xx
frcFractional component1xx
logFull precision log2(x)1xx
lrpLinear interpolate2xx
m3x23x2 multiply2xx
m3x33x3 multiply3xx
m3x43x4 multiply4xx
m4x34x3 multiply3xx
m4x44x4 multiply4xx
madMultiply and add1x
maxMaximum1x
minMinimum1x
movMove1x
mulMultiply1x
nopNo operation1x
nrmNormalize3xx
pow2x3xx
psVersion0xx
rcpReciprocal1xx
rsqReciprocal square root1xx
sincosSine and cosine8xx
subSubtract1x
texkillKill pixel render1(tex)x
texldSample a texture1 + 3CUBExx
texldbTexture sampling with level of detail (LOD) bias from w-component1(tex)xx
texldpTexture sampling with projective divide by w-component1(tex)xx

Where:



© 2002 Microsoft Corporation. All rights reserved.