56.2.1. GPU



GPU = Graphics Processor Unit



Что делает GPU?
























ATI X700

ATI X700:








NVIDIA 6800











Типовые команды для Vertex Shader (DirectX 9): add dest,src1,src2 dest = src1 + src2 dp3 dest,src1,src2 dest.x=dest.y=dest.z=dest.w= (src1.x*src2.x)+(src1.y*src2.y)+(src1.z*src2.z) dp4 dest,src1,src2 same but +(src1.w*src2.w) dst dest,src1,src2 Calculate distance vector expp dest,src.w dest.x = 2 ** (int) src.w dest.y = mantissa(src.w) dest.z = expp(src.w) dest.w = 1.0 lit dest,src Calculate lighning coefficients logp dest,src.w Logarithm 10-bit precision mad dest,src1,src2,src3 dest = (src1*src2) + src3 max dest,src1,src2 dest=(src1>=src2)? src1 : src2 min dest,src1,src2 dest=(src1=src2)?1:0 slt dest,src1,src2 dest=(src1


Типовые команды для Pixel Shader (DirectX 9): tex d Load color data RGBA texbem d,s texbeml d,s apply additional luminscense texcoord d texdp3 d,s texdp3tex d,s texkill s texm3x2depth d,s texm3x2pad d,s texm3x2tex d,s texm3x3 d,s texm3x3pad d,s texm3x3spec d,s1,s2 texm3x3tex d,s texm3x3vspec d,s texreg2ar d,s texreg2gb d,s texreg2rgb d,s texcrd d,s texdepth d texkill s texld d,s add d add s0,s1 bem d cmp d cnd dp3 dp4 lrp mad mov mul


Index Prev Next