RDPipelineRasterizationState
Pipeline rasterization state (used by RenderingDevice).
Pipeline rasterization state (used by RenderingDevice).
This object is used by RenderingDevice.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
RDPipelineRasterizationStateConstructor
public RDPipelineRasterizationState();Properties11
CullModeProperty
public RenderingDevice.PolygonCullMode CullMode { get; set; }The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.
DepthBiasClampProperty
public float DepthBiasClamp { get; set; }A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.
DepthBiasConstantFactorProperty
public float DepthBiasConstantFactor { get; set; }A constant offset added to each depth value. Applied after RDPipelineRasterizationState.DepthBiasSlopeFactor.
DepthBiasEnabledProperty
public bool DepthBiasEnabled { get; set; }If true, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of RDPipelineRasterizationState.DepthBiasSlopeFactor and RDPipelineRasterizationState.DepthBiasConstantFactor.
DepthBiasSlopeFactorProperty
public float DepthBiasSlopeFactor { get; set; }A constant scale applied to the slope of each polygon's depth. Applied before RDPipelineRasterizationState.DepthBiasConstantFactor.
DiscardPrimitivesProperty
public bool DiscardPrimitives { get; set; }If true, primitives are discarded immediately before the rasterization stage.
EnableDepthClampProperty
public bool EnableDepthClamp { get; set; }If true, clamps depth values according to the minimum and maximum depth of the associated viewport.
FrontFaceProperty
public RenderingDevice.PolygonFrontFace FrontFace { get; set; }The winding order to use to determine which face of a triangle is considered its front face.
LineWidthProperty
public float LineWidth { get; set; }The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.
PatchControlPointsProperty
public uint PatchControlPoints { get; set; }The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.
WireframeProperty
public bool Wireframe { get; set; }If true, performs wireframe rendering for triangles instead of flat or textured rendering.
Methods22
GetCullModeRenderingDevice.PolygonCullMode
public RenderingDevice.PolygonCullMode GetCullMode();RenderingDevice.PolygonCullModeGetDepthBiasClampfloat
public float GetDepthBiasClamp();floatGetDepthBiasConstantFactorfloat
public float GetDepthBiasConstantFactor();floatGetDepthBiasEnabledbool
public bool GetDepthBiasEnabled();boolGetDepthBiasSlopeFactorfloat
public float GetDepthBiasSlopeFactor();floatGetDiscardPrimitivesbool
public bool GetDiscardPrimitives();boolGetEnableDepthClampbool
public bool GetEnableDepthClamp();boolGetFrontFaceRenderingDevice.PolygonFrontFace
public RenderingDevice.PolygonFrontFace GetFrontFace();RenderingDevice.PolygonFrontFaceGetLineWidthfloat
public float GetLineWidth();floatGetPatchControlPointsuint
public uint GetPatchControlPoints();uintGetWireframebool
public bool GetWireframe();boolSetCullModevoid
public void SetCullMode(RenderingDevice.PolygonCullMode pMember);| Name | Type | Default |
|---|---|---|
pMember | RenderingDevice.PolygonCullMode | — |
SetDepthBiasClampvoid
public void SetDepthBiasClamp(float pMember);| Name | Type | Default |
|---|---|---|
pMember | float | — |
SetDepthBiasConstantFactorvoid
public void SetDepthBiasConstantFactor(float pMember);| Name | Type | Default |
|---|---|---|
pMember | float | — |
SetDepthBiasEnabledvoid
public void SetDepthBiasEnabled(bool pMember);| Name | Type | Default |
|---|---|---|
pMember | bool | — |
SetDepthBiasSlopeFactorvoid
public void SetDepthBiasSlopeFactor(float pMember);| Name | Type | Default |
|---|---|---|
pMember | float | — |
SetDiscardPrimitivesvoid
public void SetDiscardPrimitives(bool pMember);| Name | Type | Default |
|---|---|---|
pMember | bool | — |
SetEnableDepthClampvoid
public void SetEnableDepthClamp(bool pMember);| Name | Type | Default |
|---|---|---|
pMember | bool | — |
SetFrontFacevoid
public void SetFrontFace(RenderingDevice.PolygonFrontFace pMember);| Name | Type | Default |
|---|---|---|
pMember | RenderingDevice.PolygonFrontFace | — |
SetLineWidthvoid
public void SetLineWidth(float pMember);| Name | Type | Default |
|---|---|---|
pMember | float | — |
SetPatchControlPointsvoid
public void SetPatchControlPoints(uint pMember);| Name | Type | Default |
|---|---|---|
pMember | uint | — |
SetWireframevoid
public void SetWireframe(bool pMember);| Name | Type | Default |
|---|---|---|
pMember | bool | — |