网上搜了一下,发现没有状态块的介绍,因此用自己拙劣的英文水平翻译了一下,欢迎指正。
Render States
|
Default Value
|
D3DRS_CULLMODE
|
D3DCULL_CCW
|
D3DRS_FOGCOLOR
|
0
|
D3DRS_FOGTABLEMODE
|
D3DFOG_NONE
|
D3DRS_FOGSTART
|
0
|
D3DRS_FOGEND
|
1
|
D3DRS_FOGDENSITY
|
1
|
D3DRS_RANGEFOGENABLE
|
FALSE
|
D3DRS_AMBIENT
|
0
|
D3DRS_COLORVERTEX
|
TRUE
|
D3DRS_FOGVERTEXMODE
|
D3DFOG_NONE
|
D3DRS_CLIPPING
|
TRUE
|
D3DRS_LIGHTING
|
TRUE
|
D3DRS_LOCALVIEWER
|
TRUE
|
D3DRS_EMISSIVEMATERIALSOURCE
|
D3DMCS_MATERIAL
|
D3DRS_AMBIENTMATERIALSOURCE
|
D3DMCS_MATERIAL
|
D3DRS_DIFFUSEMATERIALSOURCE
|
D3DMCS_COLOR1
|
D3DRS_SPECULARMATERIALSOURCE
|
D3DMCS_COLOR2
|
D3DRS_VERTEXBLEND
|
D3DVBF_DISABLE
|
D3DRS_CLIPPLANEENABLE
|
0
|
D3DRS_POINTSIZE
|
Driver dependent
|
D3DRS_POINTSIZE_MIN
|
1
|
D3DRS_POINTSPRITEENABLE
|
FALSE
|
D3DRS_POINTSCALEENABLE
|
FALSE
|
D3DRS_POINTSCALE_A
|
1
|
D3DRS_POINTSCALE_B
|
0
|
D3DRS_POINTSCALE_C
|
0
|
D3DRS_MULTISAMPLEANTIALIAS
|
TRUE
|
D3DRS_MULTISAMPLEMASK
|
0xffffffff
|
D3DRS_PATCHEDGESTYLE
|
D3DPATCHEDGE_DISCRETE
|
D3DRS_POINTSIZE_MAX
|
1
|
D3DRS_INDEXEDVERTEXBLENDENABLE
|
FALSE
|
D3DRS_TWEENFACTOR
|
0
|
D3DRS_POSITIONDEGREE
|
D3DDEGREE_CUBIC
|
D3DRS_NORMALDEGREE
|
D3DDEGREE_LINEAR
|
D3DRS_MINTESSELLATIONLEVEL
|
1
|
D3DRS_MAXTESSELLATIONLEVEL
|
1
|
D3DRS_ADAPTIVETESS_X
|
0
|
D3DRS_ADAPTIVETESS_Y
|
0
|
D3DRS_ADAPTIVETESS_Z
|
1
|
D3DRS_ADAPTIVETESS_W
|
0
|
D3DRS_ENABLEADAPTIVETESSELLATION"/>
|
FALSE
|
Sampler States
|
Default Value
|
D3DSAMP_ADDRESSU
|
D3DTADDRESS_WRAP
|
D3DSAMP_ADDRESSV
|
D3DTADDRESS_WRAP
|
D3DSAMP_ADDRESSW
|
D3DTADDRESS_WRAP
|
D3DSAMP_BORDERCOLOR
|
0x00000000
|
D3DSAMP_MAGFILTER
|
D3DTEXF_POINT
|
D3DSAMP_MINFILTER
|
D3DTEXF_POINT
|
D3DSAMP_MIPFILTER
|
D3DTEXF_NONE
|
D3DSAMP_MIPMAPLODBIAS
|
0
|
D3DSAMP_MAXMIPLEVEL
|
0
|
D3DSAMP_MAXANISOTROPY
|
1
|
D3DSAMP_SRGBTEXTURE
|
0
|
D3DSAMP_ELEMENTINDEX
|
0
|
Texture States
|
Default Value
|
D3DTSS_COLOROP
|
D3DTOP_DISABLE
|
D3DTSS_COLORARG1
|
D3DTA_TEXTURE
|
D3DTSS_COLORARG2
|
D3DTA_CURRENT
|
D3DTSS_ALPHAOP
|
D3DTOP_DISABLE
|
D3DTSS_ALPHAARG1
|
D3DTA_TEXTURE
|
D3DTSS_ALPHAARG2
|
D3DTA_CURRENT
|
D3DTSS_BUMPENVMAT00
|
0
|
D3DTSS_BUMPENVMAT01
|
0
|
D3DTSS_BUMPENVMAT10
|
0
|
D3DTSS_BUMPENVMAT11
|
0
|
D3DTSS_TEXCOORDINDEX
|
0
|
D3DTSS_BUMPENVLSCALE
|
0
|
D3DTSS_BUMPENVLOFFSET
|
0
|
D3DTSS_TEXTURETRANSFORMFLAGS
|
D3DTTFF_DISABLE
|
D3DTSS_COLORARG0
|
D3DTA_CURRENT
|
D3DTSS_ALPHAARG0
|
D3DTA_CURRENT
|
D3DTSS_RESULTARG
|
D3DTA_CURRENT
|