Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Instructions - vs_1_1

This section contains reference information for the vertex shader version 1_1 instructions.

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

  • Instruction slots - Number of instruction slots used by each instruction.
  • Setup - Non-arithmetic instructions. Every shader must have a version instruction and it must be the first instruction.
  • Arithmetic - These instructions provide the mathematical operations in a shader.
  • New - These instructions are new to this version.

Instruction Set

NameDescriptionInstruction slotsSetupArithmeticNew
add - vs Add two vectors1xx
dcl_usage input (sm1, sm2, sm3 - vs asm) Declare input vertex registers (see Registers - vs_1_1)0xx
def - vs Define constants0xx
dp3 - vs Three-component dot product1xx
dp4 - vs Four-component dot product1xx
dst - vs Calculate the distance vector1xx
exp - vs Full precision 2x10xx
exp - vs Partial precision 2x1xx
frc - vs Fractional component3xx
lit - vs Partial lighting calculation1xx
log - vs Full precision log₂(x)10xx
logp - vs Partial precision log₂(x)1xx
m3x2 - vs 3x2 multiply2xx
m3x3 - vs 3x3 multiply3xx
m3x4 - vs 3x4 multiply4xx
m4x3 - vs 4x3 multiply3xx
m4x4 - vs 4x4 multiply4xx
mad - vs Multiply and add1xx
max - vs Maximum1xx
min - vs Minimum1xx
mov - vs Move1xx
mul - vs Multiply1xx
nop - vs No operation1xx
rcp - vs Reciprocal1xx
rsq - vs Reciprocal square root1xx
sge - vs Greater than or equal compare1xx
slt - vs Less than compare1xx
sub - vs Subtract1xx
vs Version0xx


Related topics

Vertex Shader Instructions



© 2017 Microsoft