Struct D3D11RasterizerDesc
Describes rasterizer state.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11RasterizerDesc : IEquatable<D3D11RasterizerDesc>
Constructors
|
Edit this page
View Source
D3D11RasterizerDesc(D3D11FillMode, D3D11CullMode, bool, int, float, float, bool, bool, bool, bool)
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 MultisampleEnable is false.
|
Properties
|
Edit this page
View Source
CullMode
Gets or sets a value indicating whether triangles facing the specified direction are not drawn.
Declaration
public D3D11CullMode CullMode { get; set; }
Property Value
|
Edit this page
View Source
Default
Gets default rasterizer-state values.
Declaration
public static D3D11RasterizerDesc Default { get; }
Property Value
|
Edit this page
View Source
DepthBias
Gets or sets the depth value added to a given pixel.
Declaration
public int DepthBias { get; set; }
Property Value
|
Edit this page
View Source
DepthBiasClamp
Gets or sets the maximum depth bias of a pixel.
Declaration
public float DepthBiasClamp { get; set; }
Property Value
|
Edit this page
View Source
FillMode
Gets or sets the fill mode to use when rendering.
Declaration
public D3D11FillMode FillMode { get; set; }
Property Value
|
Edit this page
View Source
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
|
Edit this page
View Source
IsDepthClipEnabled
Gets or sets a value indicating whether clipping based on distance is enabled.
Declaration
public bool IsDepthClipEnabled { get; set; }
Property Value
|
Edit this page
View Source
IsFrontCounterClockwise
Gets or sets a value indicating whether a triangle is front- or back-facing.
Declaration
public bool IsFrontCounterClockwise { get; set; }
Property Value
|
Edit this page
View Source
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
|
Edit this page
View Source
IsScissorEnabled
Gets or sets a value indicating whether scissor-rectangle culling is enabled.
Declaration
public bool IsScissorEnabled { get; set; }
Property Value
|
Edit this page
View Source
SlopeScaledDepthBias
Gets or sets the scalar on a given pixel's slope.
Declaration
public float SlopeScaledDepthBias { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D3D11RasterizerDesc)
Declaration
public readonly bool Equals(D3D11RasterizerDesc other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D3D11RasterizerDesc NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11RasterizerDesc>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11RasterizerDesc> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D3D11RasterizerDesc)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11RasterizerDesc obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11RasterizerDesc>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11RasterizerDesc> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D3D11RasterizerDesc, D3D11RasterizerDesc)
Declaration
public static bool operator ==(D3D11RasterizerDesc left, D3D11RasterizerDesc right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11RasterizerDesc, D3D11RasterizerDesc)
Declaration
public static bool operator !=(D3D11RasterizerDesc left, D3D11RasterizerDesc right)
Parameters
Returns
Implements