Registers - vs_1_1

This section contains reference information for the input and output registers implemented by vertex shader version 1_1.

Input Registers

Register Name Count R/W # Read ports # Reads / inst Dimension RelAddr Defaults Requires DCL
a0 Address Register 1 R/W 1 Unlimited See note 3 No None No
c# Constant Float Register See note 2 R 1 Unlimited 4 a0.x (0, 0, 0, 0) No
v# Input Register 16 R 1 Unlimited 4 No See note 1 Yes
r# Temporary Register 12 R/W 3 Unlimited 4 No None No

 

Notes:

  1. Partial (0, 0, 0, 1) - If only a subset of channels are updated, the remaining channels will default to (0, 0, 0, 1).
  2. Equal to D3DCAPS9.MaxVertexShaderConst (at least 96 for vs_1_1).
  3. Only .x channel is available.

Output Registers

Register Name Count R/W Dimension RelAddr Defaults Requires DCL
oPos Position Register 1 W 4 No None No
oFog Fog Register 1 W 1 No None No
oPts Point Size Register 1 W 1 No None No
oD# Color Register; See note 1 2 W 4 No None No
oT# Texture Coordinate Register 8 W 4 No None No

 

Notes:

  • oD0 is the diffuse color output; oD1 is the specular color output.

Vertex Shader Registers