Microsoft DirectX 8.0 (Visual Basic) |
Samples a color from the texture and copies it into the corresponding register with no modification applied to the addresses used for sampling.
tex tDest
Because this instruction is the default, the tex instruction is assumed for any textures whose sampling is not specified by other statements.
The following example shows how this instruction might be used.
tex r0 ; Declare register 0 as color from the ; texture currently set at stage 0.
Note that this instruction has an unnamed input which is the assigned texture that corresponds to this texture stage.