Struct DepthStencilOperationDescription
Stencil operations that can be performed based on the results of the stencil test.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct DepthStencilOperationDescription
Fields
StencilDepthFailOperation
The stencil operation to perform when stencil testing passes and depth testing fails.
Declaration
public StencilOperation StencilDepthFailOperation
Field Value
Type | Description |
---|---|
StencilOperation |
StencilFailOperation
The stencil operation performed when stencil testing fails.
Declaration
public StencilOperation StencilFailOperation
Field Value
Type | Description |
---|---|
StencilOperation |
StencilFunction
A function that compares stencil data with existing stencil data.
Declaration
public ComparisonFunction StencilFunction
Field Value
Type | Description |
---|---|
ComparisonFunction |
StencilPassOperation
The stencil operation to perform when both stencil testing and depth testing pass.
Declaration
public StencilOperation StencilPassOperation
Field Value
Type | Description |
---|---|
StencilOperation |
Methods
Equals(DepthStencilOperationDescription)
Determines whether the specified parameter is equal to this instance.
Declaration
public bool Equals(DepthStencilOperationDescription other)
Parameters
Type | Name | Description |
---|---|---|
DepthStencilOperationDescription | other | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures, such as a hash table. |
Overrides
Operators
operator ==(DepthStencilOperationDescription, DepthStencilOperationDescription)
Implements the operator ==.
Declaration
public static bool operator ==(DepthStencilOperationDescription value1, DepthStencilOperationDescription value2)
Parameters
Type | Name | Description |
---|---|---|
DepthStencilOperationDescription | value1 | The first value to compare. |
DepthStencilOperationDescription | value2 | The second value to compare. |
Returns
Type | Description |
---|---|
bool | The result of the comparison. |
operator !=(DepthStencilOperationDescription, DepthStencilOperationDescription)
Implements the operator ==.
Declaration
public static bool operator !=(DepthStencilOperationDescription value1, DepthStencilOperationDescription value2)
Parameters
Type | Name | Description |
---|---|---|
DepthStencilOperationDescription | value1 | The first value. |
DepthStencilOperationDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operation. |