码迷,mamicode.com
首页 > 其他好文 > 详细

d3d11 effect state and default value tables

时间:2014-05-01 16:25:22      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:des   tar   ext   color   get   http   com   line   window   table   res   

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

d3d11 effect state and default value tables,码迷,mamicode.com

d3d11 effect state and default value tables

标签:des   tar   ext   color   get   http   com   line   window   table   res   

原文地址:http://www.cnblogs.com/minggoddess/p/3700637.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!