pub enum RegisterType {
Show 20 variants
Temp,
Input,
Const,
Address,
Texture,
RasterizerOut,
AttributeOut,
Output,
ConstInt,
ColorOut,
DepthOut,
Sampler,
Const2,
Const3,
Const4,
ConstBool,
Loop,
Misc,
Label,
Predicate,
}Expand description
A register type (D3DSHADER_PARAM_REGISTER_TYPE, D3DSPR_*). Type 3 is the address register in a vertex program
and a texture register in a pixel program; type 6 is a vertex program’s texture-coordinate output (oTN) before
3.0 and its output oN in 3.0.
Variants§
Temp
rN (D3DSPR_TEMP, 0).
Input
vN (D3DSPR_INPUT, 1).
Const
cN (D3DSPR_CONST, 2).
Address
a0 of a vertex program (D3DSPR_ADDR, 3).
Texture
tN of a pixel program (D3DSPR_TEXTURE, 3).
RasterizerOut
oPos (0), oFog (1) or oPts (2) of a vertex program before 3.0 (D3DSPR_RASTOUT, 4).
AttributeOut
oDN, a vertex program’s colour output before 3.0 (D3DSPR_ATTROUT, 5).
Output
oTN before vertex 3.0, oN in 3.0 (D3DSPR_TEXCRDOUT and D3DSPR_OUTPUT, 6).
ConstInt
iN, an integer constant (D3DSPR_CONSTINT, 7).
ColorOut
oCN, a pixel program’s colour output (D3DSPR_COLOROUT, 8).
DepthOut
oDepth (D3DSPR_DEPTHOUT, 9).
Sampler
sN (D3DSPR_SAMPLER, 10).
Const2
cN from 2048 on, the number being N - 2048 (D3DSPR_CONST2, 11).
Const3
cN from 4096 on (D3DSPR_CONST3, 12).
Const4
cN from 6144 on (D3DSPR_CONST4, 13).
ConstBool
bN, a boolean constant (D3DSPR_CONSTBOOL, 14).
Loop
aL, the loop counter (D3DSPR_LOOP, 15).
Misc
vPos (0) or vFace (1) of a pixel 3.0 program (D3DSPR_MISCTYPE, 17).
Label
lN, a label (D3DSPR_LABEL, 18).
Predicate
p0, the predicate (D3DSPR_PREDICATE, 19).