d3d11 effect state and default value tables

时间:2021-12-28 08:03:19

Blend state

State            Default Value
AlphaToCoverage  Enable FALSE
IndependentBlend  Enable FALSE
RenderTarget[0].BlendEnable    FALSE
RenderTarget[0].SrcBlend    D3D11_BLEND_ONE
RenderTarget[0].DestBlend    D3D11_BLEND_ZERO
RenderTarget[0].BlendOp       D3D11_BLEND_OP_ADD
RenderTarget[0].SrcBlendAlpha    D3D11_BLEND_ONE
RenderTarget[0].DestBlendAlpha   D3D11_BLEND_ZERO
RenderTarget[0].BlendOpAlpha    D3D11_BLEND_OP_ADD
RenderTarget[0].RenderTargetWriteMask   D3D11_COLOR_WRITE_ENABLE_ALL

Depth and Stencil state

State          Default Value
DepthEnable          TRUE
DepthWriteMask    D3D11_DEPTH_WRITE_MASK_ALL
DepthFunc    D3D11_COMPARISON_LESS
StencilEnable    FALSE
StencilReadMask    D3D11_DEFAULT_STENCIL_READ_MASK
StencilWriteMask    D3D11_DEFAULT_STENCIL_WRITE_MASK

FrontFace.StencilFunc    D3D11_COMPARISON_ALWAYS
and
BackFace.StencilFunc

FrontFace.StencilDepthFailOp    D3D11_STENCIL_OP_KEEP
and
BackFace.StencilDepthFailOp

FrontFace.StencilPassOp   D3D11_STENCIL_OP_KEEP
and
BackFace.StencilPassOp

FrontFace.StencilFailOp   D3D11_STENCIL_OP_KEEP
and
BackFace.StencilFailOp

Rasterizer state

State        Default Value
FillMode      Solid
CullMode        Back
FrontCounterClockwise    FALSE
DepthBias          0
SlopeScaledDepthBias    0.0f
DepthBiasClamp    0.0f
DepthClipEnable    TRUE
ScissorEnable     FALSE
MultisampleEnable    FALSE
AntialiasedLineEnable   FALSE

sampler state

State            Default Value
Filter     D3D11_FILTER_MIN_MAG_MIP_LINEAR
AddressU    D3D11_TEXTURE_ADDRESS_CLAMP
AddressV    D3D11_TEXTURE_ADDRESS_CLAMP
AddressW    D3D11_TEXTURE_ADDRESS_CLAMP
MinLOD      -3.402823466e+38F (-FLT_MAX)
MaxLOD      3.402823466e+38F (FLT_MAX)
MipMapLODBias   0.0f
MaxAnisotropy    1
ComparisonFunc    D3D11_COMPARISON_NEVER
BorderColor    float4(1.0f,1.0f,1.0f,1.0f)
Texture       N/A

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476207(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476121(v=vs.85).aspx