Microsoft DirectX 8.1 (Visual Basic)

D3DVSD_TESSNORMAL

Enables tessellator-generated normals.

Function D3DVSD_TESSNORMAL(VertexRegisterIn As Long, VertexRegisterOut As Long) As Long
    D3DVSD_TESSNORMAL = (D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_TESSELLATOR) Or _
     ((VertexRegisterIn) * 2 ^ D3DVSD_VERTEXREGINSHIFT) Or _
     ((&H2&) * 2 ^ D3DVSD_DATATYPESHIFT) Or (VertexRegisterOut))
End Function

Parameters

VertexRegisterIn
Address of the vertex register whose input stream will be used in normal computation. Possible values range from 0 to 15.
VertexRegisterOut
Address of the vertex register to output the normal to. Possible values range from 0 to 15.

Remarks

D3DVSD_TESSNORMAL and all the constants it uses are found in (SDK Root)\Samples\Multimedia\VBSamples\Common\D3DShaders.bas.

See Also

Direct3DDevice8.CreateVertexShader