Go to the documentation of this file.
139 #if DILIGENT_CPP_INTERFACE
152 FillMode {_FillMode },
153 CullMode {_CullMode },
154 FrontCounterClockwise {_FrontCounterClockwise},
155 DepthClipEnable {_DepthClipEnable },
156 ScissorEnable {_ScissorEnable },
157 AntialiasedLineEnable {_AntialiasedLineEnable},
158 DepthBias {_DepthBias },
159 DepthBiasClamp {_DepthBiasClamp },
160 SlopeScaledDepthBias {_SlopeScaledDepthBias }
float Float32
32-bit float
Definition: BasicTypes.h:43
@ FILL_MODE_SOLID
Rasterize triangles using solid fill. Direct3D counterpart: D3D11_FILL_SOLID/D3D12_FILL_MODE_SOLID....
Definition: RasterizerState.h:57
FILL_MODE
Fill mode.
Definition: RasterizerState.h:46
bool operator==(const Plane3D &p1, const Plane3D &p2)
Definition: AdvancedMath.hpp:442
@ CULL_MODE_BACK
Do not draw triangles that are back-facing. Front- and back-facing triangles are determined by the Ra...
Definition: RasterizerState.h:86
Rasterizer state description.
Definition: RasterizerState.h:96
@ CULL_MODE_NUM_MODES
Helper value that stores the total number of cull modes in the enumeration.
Definition: RasterizerState.h:89
int32_t Int32
32-bit signed integer
Definition: BasicTypes.h:46
int8_t Int8
8-bit signed integer
Definition: BasicTypes.h:48
Float32 SlopeScaledDepthBias
Scalar that scales the given pixel's slope before adding to the pixel's depth. Default value: 0.
Definition: RasterizerState.h:136
Bool AntialiasedLineEnable
Specifies whether to enable line antialiasing. Default value: False.
Definition: RasterizerState.h:123
CULL_MODE
Cull mode.
Definition: RasterizerState.h:69
RasterizerStateDesc(FILL_MODE _FillMode, CULL_MODE _CullMode, Bool _FrontCounterClockwise=RasterizerStateDesc{}.FrontCounterClockwise, Bool _DepthClipEnable=RasterizerStateDesc{}.DepthClipEnable, Bool _ScissorEnable=RasterizerStateDesc{}.ScissorEnable, Bool _AntialiasedLineEnable=RasterizerStateDesc{}.AntialiasedLineEnable, Int32 _DepthBias=RasterizerStateDesc{}.DepthBias, Float32 _DepthBiasClamp=RasterizerStateDesc{}.DepthBiasClamp, Float32 _SlopeScaledDepthBias=RasterizerStateDesc{}.SlopeScaledDepthBias) noexcept
Definition: RasterizerState.h:143
#define DILIGENT_END_NAMESPACE
Definition: CommonDefinitions.h:86
@ FILL_MODE_NUM_MODES
Helper value that stores the total number of fill modes in the enumeration.
Definition: RasterizerState.h:60
Bool ScissorEnable
Enable scissor-rectangle culling. All pixels outside an active scissor rectangle are culled....
Definition: RasterizerState.h:119
@ CULL_MODE_UNDEFINED
Undefined cull mode.
Definition: RasterizerState.h:72
RasterizerStateDesc() noexcept
Definition: RasterizerState.h:141
@ CULL_MODE_FRONT
Do not draw triangles that are front-facing. Front- and back-facing triangles are determined by the R...
Definition: RasterizerState.h:81
Float32 DepthBiasClamp
Maximum depth bias of a pixel.
Definition: RasterizerState.h:132
#define DEFAULT_INITIALIZER(x)
Definition: CommonDefinitions.h:93
bool Bool
Boolean.
Definition: BasicTypes.h:59
@ CULL_MODE_NONE
Draw all triangles. Direct3D counterpart: D3D11_CULL_NONE/D3D12_CULL_MODE_NONE. OpenGL counterpart:...
Definition: RasterizerState.h:76
FILL_MODE FillMode
Determines traingle fill mode, see Diligent::FILL_MODE for details. Default value: Diligent::FILL_MOD...
Definition: RasterizerState.h:100
#define DILIGENT_TYPED_ENUM(EnumName, EnumType)
Definition: CommonDefinitions.h:88
@ FILL_MODE_UNDEFINED
Undefined fill mode.
Definition: RasterizerState.h:49
@ FILL_MODE_WIREFRAME
Rasterize triangles using wireframe fill. Direct3D counterpart: D3D11_FILL_WIREFRAME/D3D12_FILL_MOD...
Definition: RasterizerState.h:53
CULL_MODE CullMode
Determines traingle cull mode, see Diligent::CULL_MODE for details. Default value: Diligent::CULL_MOD...
Definition: RasterizerState.h:104
Int32 DepthBias
Constant value added to the depth of a given pixel. Default value: 0.
Definition: RasterizerState.h:127
#define DILIGENT_BEGIN_NAMESPACE(Name)
Definition: CommonDefinitions.h:82
Bool FrontCounterClockwise
Determines if a triangle is front- or back-facing. If this parameter is True, a triangle will be cons...
Definition: RasterizerState.h:111
Bool DepthClipEnable
Enable clipping against near and far clip planes. Default value: True.
Definition: RasterizerState.h:115
struct RasterizerStateDesc RasterizerStateDesc
Definition: RasterizerState.h:184
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37