Struct D3D11RasterizerDesc
Describes rasterizer state.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11RasterizerDesc : IEquatable<D3D11RasterizerDesc>
Constructors
| Edit this page View SourceD3D11RasterizerDesc(D3D11FillMode, D3D11CullMode, bool, int, float, float, bool, bool, bool, bool)
Initializes a new instance of the D3D11RasterizerDesc struct.
Declaration
public D3D11RasterizerDesc(D3D11FillMode fillMode, D3D11CullMode cullMode, bool isFrontCounterClockwise, int depthBias, float depthBiasClamp, float slopeScaledDepthBias, bool isDepthClipEnabled, bool isScissorEnabled, bool isMultisampleEnabled, bool isAntialiasedLineEnabled)
Parameters
Type | Name | Description |
---|---|---|
D3D11FillMode | fillMode | Determines the fill mode to use when rendering. |
D3D11CullMode | cullMode | Indicates whether triangles facing the specified direction are not drawn. |
bool | isFrontCounterClockwise | Determines if a triangle is front- or back-facing. |
int | depthBias | The depth value added to a given pixel. |
float | depthBiasClamp | The maximum depth bias of a pixel. |
float | slopeScaledDepthBias | The scalar on a given pixel's slope. |
bool | isDepthClipEnabled | Specifies whether clipping based on distance is enabled. |
bool | isScissorEnabled | Specifies whether scissor-rectangle culling is enabled. |
bool | isMultisampleEnabled | Specifies whether to use the quadrilateral or alpha line anti-aliasing algorithm on multisample antialiasing (MSAA) render targets. |
bool | isAntialiasedLineEnabled | Specifies whether to enable line antialiasing; only applies if doing line drawing and |
Properties
| Edit this page View SourceCullMode
Gets or sets a value indicating whether triangles facing the specified direction are not drawn.
Declaration
public D3D11CullMode CullMode { get; set; }
Property Value
Type | Description |
---|---|
D3D11CullMode |
Default
Gets default rasterizer-state values.
Declaration
public static D3D11RasterizerDesc Default { get; }
Property Value
Type | Description |
---|---|
D3D11RasterizerDesc |
DepthBias
Gets or sets the depth value added to a given pixel.
Declaration
public int DepthBias { get; set; }
Property Value
Type | Description |
---|---|
int |
DepthBiasClamp
Gets or sets the maximum depth bias of a pixel.
Declaration
public float DepthBiasClamp { get; set; }
Property Value
Type | Description |
---|---|
float |
FillMode
Gets or sets the fill mode to use when rendering.
Declaration
public D3D11FillMode FillMode { get; set; }
Property Value
Type | Description |
---|---|
D3D11FillMode |
IsAntialiasedLineEnabled
Gets or sets a value indicating whether to enable line antialiasing; only applies if doing line drawing and MultisampleEnable
is false
.
Declaration
public bool IsAntialiasedLineEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsDepthClipEnabled
Gets or sets a value indicating whether clipping based on distance is enabled.
Declaration
public bool IsDepthClipEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsFrontCounterClockwise
Gets or sets a value indicating whether a triangle is front- or back-facing.
Declaration
public bool IsFrontCounterClockwise { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsMultisampleEnabled
Gets or sets a value indicating whether to use the quadrilateral or alpha line anti-aliasing algorithm on multisample antialiasing (MSAA) render targets.
Declaration
public bool IsMultisampleEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsScissorEnabled
Gets or sets a value indicating whether scissor-rectangle culling is enabled.
Declaration
public bool IsScissorEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
SlopeScaledDepthBias
Gets or sets the scalar on a given pixel's slope.
Declaration
public float SlopeScaledDepthBias { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(D3D11RasterizerDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11RasterizerDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11RasterizerDesc | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11RasterizerDesc, D3D11RasterizerDesc)
Compares two D3D11RasterizerDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11RasterizerDesc left, D3D11RasterizerDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11RasterizerDesc | left | The left D3D11RasterizerDesc to compare. |
D3D11RasterizerDesc | right | The right D3D11RasterizerDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11RasterizerDesc, D3D11RasterizerDesc)
Compares two D3D11RasterizerDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11RasterizerDesc left, D3D11RasterizerDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11RasterizerDesc | left | The left D3D11RasterizerDesc to compare. |
D3D11RasterizerDesc | right | The right D3D11RasterizerDesc to compare. |
Returns
Type | Description |
---|---|
bool |