effect state dx11

一个blendstate

{

  BlendEnable[0]=TRUE;

  SrcBlend[0]=ONE;

  DestBlend[]=ONE;

  BlendOp[0]=ADD;

 

 

}

 

[0]-----一次混合 是指一个关系 而不是一个tex

 

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

inv_src_alpha-----1-a 而不是 -a

 

http://www.gamedev.net/topic/535284-alpha-blending/

 rgb----a

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

 

blendstate

ALPHATOCOVERAGEENABLE
BLENDENABLE
SRCBLEND
DESTBLEND
BLENDOP
SRCBLENDALPHA
DESTBLENDALPHA
BLENDOPALPHA
RENDERTARGETWRITEMASK


Depth and Stencil State

DEPTHENABLE
DEPTHWRITEMASK
DEPTHFUNC
STENCILENABLE
STENCILREADMASK
STENCILWRITEMASK

FRONTFACESTENCILFAIL
FRONTFACESTENCILZFAIL
FRONTFACESTENCILPASS
FRONTFACESTENCILFUNC
BACKFACESTENCILFAIL
BACKFACESTENCILZFAIL
BACKFACESTENCILPASS
BACKFACESTENCILFUNC

Rasterizer State

FILLMODE D3D11_FILL_MODE
CULLMODE D3D11_CULL_MODE
FRONTCOUNTERCLOCKWISE
DEPTHBIAS
DEPTHBIASCLAMP
SLOPESCALEDDEPTHBIAS
ZCLIPENABLE
SCISSORENABLE
MULTISAMPLEENABLE
ANTIALIASEDLINEENABLE

Sampler State

Filter
AddressU
AddressV
AddressW
MipLODBias
MaxAnisotropy
ComparisonFunc
BorderColor
MinLOD
MaxLOD

 

http://msdn.microsoft.com/en-us/library/bb173005(VS.85).aspx

 

State Where valid # of indices Valid values
---------------------------+--------------+-------------+---------------------
RasterizerState Pass      1 State Block
DepthStencilState Pass      1 State Block
BlendState Pass       1 State Block
RenderTargetView Pass    8 State Block
DepthStencilView Pass    8 State Block
GenerateMips Pass    1 Texture
VertexShader Pass    1 NULL or Shader
PixelShader Pass   1 NULL or Shader
GeometryShader Pass    1 NULL or Shader
DS_StencilRef Pass    1 UINT
AB_BlendFactor Pass    1 FLOAT4
AB_SampleMask Pass    1 UINT

FillMode Rasterizer   1 FILL
CullMode Rasterizer    1 CULL
FrontCounterClockwise Rasterizer    1 BOOL
DepthBias Rasterizer   1 UINT
DepthBiasClamp Rasterizer    1 FLOAT
SlopeScaledDepthBias Rasterizer   1 FLOAT
DepthClipEnable Rasterizer   1 BOOL
ScissorEnable Rasterizer    1 BOOL
MultisampleEnable Rasterizer    1 BOOL
AntialiasedLineEnable Rasterizer   1 BOOL

DepthEnable DepthStencil    1 BOOL
DepthWriteMask DepthStencil    1 DEPTH_WRITE_MASK
DepthFunc DepthStencil    1 CMP
StencilEnable DepthStencil    1 BOOL
StencilReadMask DepthStencil    1 BYTE
StencilWriteMask DepthStencil    1 BYTE
FrontFaceStencilFail DepthStencil    1 STENCILOP
FrontFaceStencilDepthFail DepthStencil 1 STENCILOP
FrontFaceStencilPass DepthStencil   1 STENCILOP
FrontFaceStencilFunc DepthStencil    1 CMP
BackFaceStencilFail DepthStencil   1 STENCILOP
BackFaceStencilDepthFail DepthStencil    1 STENCILOP
BackFaceStencilPass DepthStencil    1 STENCILOP
BackFaceStencilFunc DepthStencil   1 CMP

AlphaToCoverageEnable Blend    1 BOOL
BlendEnable Blend 8 BOOL
SrcBlend Blend 8 BLEND
DestBlend Blend 8 BLEND
BlendOp Blend 8 BLENDOP
SrcBlendAlpha Blend 8 BLEND
DestBlendAlpha Blend 8 BLEND
BlendOpAlpha Blend 8 BLENDOP
RenderTargetWriteMask Blend 8 BYTE

Filter Sampler 1 FILTER
AddressU Sampler 1 TADDRESS
AddressV Sampler 1 TADDRESS
AddressW Sampler 1 TADDRESS
MipLODBias Sampler 1 FLOAT
MaxAnisotropy Sampler 1 UINT
ComparisonFunc Sampler 1 CMP
BorderColor Sampler 1 FLOAT4
MinLOD Sampler 1 FLOAT
MaxLOD Sampler 1 FLOAT
Texture Sampler 1 NULL or Texture
RHS values
------------------------------
BOOL:
FALSE
TRUE
DEPTH_WRITE_MASK:
ZERO
ALL
FILL:
WIREFRAME
SOLID
FILTER:
MIN_MAG_MIP_POINT
MIN_MAG_POINT_MIP_LINEAR
MIN_POINT_MAG_LINEAR_MIP_POINT
MIN_POINT_MAG_MIP_LINEAR
MIN_LINEAR_MAG_MIP_POINT
MIN_LINEAR_MAG_POINT_MIP_LINEAR
MIN_MAG_LINEAR_MIP_POINT
MIN_MAG_MIP_LINEAR
ANISOTROPIC
COMPARISON_MIN_MAG_MIP_POINT
COMPARISON_MIN_MAG_POINT_MIP_LINEAR
COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT
COMPARISON_MIN_POINT_MAG_MIP_LINEAR
COMPARISON_MIN_LINEAR_MAG_MIP_POINT
COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR
COMPARISON_MIN_MAG_LINEAR_MIP_POINT
COMPARISON_MIN_MAG_MIP_LINEAR
COMPARISON_ANISOTROPIC
TEXT_1BIT
BLEND:
ZERO
ONE
SRC_COLOR
INV_SRC_COLOR
SRC_ALPHA
INV_SRC_ALPHA
DEST_ALPHA
INV_DEST_ALPHA
DEST_COLOR
INV_DEST_COLOR
SRC_ALPHA_SAT
BLEND_FACTOR
INV_BLEND_FACTOR
SRC1_COLOR
INV_SRC1_COLOR
SRC1_ALPHA
INV_SRC1_ALPHA
TADDRESS:
CLAMP
WRAP
MIRROR
BORDER
MIRROR_ONCE
CULL:
NONE
FRONT
BACK
CMP:
NEVER
LESS
EQUAL
LESS_EQUAL
GREATER
NOT_EQUAL
GREATER_EQUAL
ALWAYS
STENCILOP:
KEEP
ZERO
REPLACE
INCR_SAT
DECR_SAT
INVERT
INCR
DECR
BLENDOP:
ADD
SUBTRACT
REV_SUBTRACT
MIN
MAX

 

state 的默认值在这里  ,  点进去的desc里面

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

你可能感兴趣的:(effect)