Back to class index
RasterizerState[Class Summary]
cullMode
depthBias
slopeScaledDepthBias
scissorEnable
ctor (+1 overload)
~dtor
Create(...)
Deinit()

RasterizerState::Create

Syntax

void RasterizerState::Create(FillMode fillMode, CullMode cullMode, bool depthClipEnable=true, int depthBias=0, float depthBiasClamp=0.f, float slopeScaledDepthBias=0.f, bool scissorEnable=false, bool multisampleEnable=false, bool antialiasedLineEnable=false);

Recreates this state object to the given rasterization state options.

For more information on the different rasterizer states on Direct3D 11, see http://msdn.microsoft.com/en-us/library/windows/desktop/ff476198(v=vs.85).aspx

Parameters

FillModefillModeSpecifies how rendered primitives are filled (FillSolid or FillWireframe). (D3D11 only) CullModecullModeSpecifies whether to discard transformed primivites based on their triangle winding order. (CullNone, CullCCW or CullCW). booldepthClipEnableIf true, pixels outside the normalized post-transformed depth range [0,1] are discarded and not rasterized. (D3D11 only) intdepthBiasSpecifies the constant depth bias to apply to the depth values of all transformed vertices. floatdepthBiasClampThe maximum amount of depth bias to apply to the depth value of a transformed vertex. (D3D11 only) floatslopeScaledDepthBiasHow much depth bias to apply relative to the slope (derivative on Z) of the polygon. boolscissorEnableIf true, transformed polygons are clipped against a 2D scissor rectangle. Pixels outside the scissor rectangle are culled. boolmultisampleEnableSpecifies whether to use the quadrilateral (if true) or alpha (if false) line anti-aliasing algorithm on multisample antialiasing (MSAA) render targets. (D3D11 only) boolantialiasedLineEnableSpecifies whether to enable line antialiasing. (D3D11 only)

Work in progress:

Todo: in void RasterizerState::Create(FillMode fillMode, CullMode cullMode, bool depthClipEnable=true, int depthBias=0, float depthBiasClamp=0.f, float slopeScaledDepthBias=0.f, bool scissorEnable=false, bool multisampleEnable=false, bool antialiasedLineEnable=false):
See GLES2 spec 4.1.3 Multisample Fragment Operations.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index