Struct StencilBehaviorDescription
- Namespace
- NeoVeldrid
- Assembly
- NeoVeldrid.dll
Describes how stencil tests are performed in a Pipeline's depth-stencil state.
public struct StencilBehaviorDescription : IEquatable<StencilBehaviorDescription>
- Implements
- Inherited Members
Constructors
StencilBehaviorDescription(StencilOperation, StencilOperation, StencilOperation, ComparisonKind)
Constructs a new StencilBehaviorDescription.
public StencilBehaviorDescription(StencilOperation fail, StencilOperation pass, StencilOperation depthFail, ComparisonKind comparison)
Parameters
failStencilOperationThe operation performed on samples that fail the stencil test.
passStencilOperationThe operation performed on samples that pass the stencil test.
depthFailStencilOperationThe operation performed on samples that pass the stencil test but fail the depth test.
comparisonComparisonKindThe comparison operator used in the stencil test.
Fields
Comparison
The comparison operator used in the stencil test.
public ComparisonKind Comparison
Field Value
DepthFail
The operation performed on samples that pass the stencil test but fail the depth test.
public StencilOperation DepthFail
Field Value
Fail
The operation performed on samples that fail the stencil test.
public StencilOperation Fail
Field Value
Pass
The operation performed on samples that pass the stencil test.
public StencilOperation Pass
Field Value
Methods
Equals(StencilBehaviorDescription)
Element-wise equality.
public bool Equals(StencilBehaviorDescription other)
Parameters
otherStencilBehaviorDescriptionThe instance to compare to.
Returns
- bool
True if all elements are equal; false otherswise.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.