Gorgon
Show / Hide Table of Contents

Class GorgonStencilOperation

Information used to create the stencil portion of a GorgonDepthStencilState.

Inheritance
object
GorgonStencilOperation
Implements
IEquatable<GorgonStencilOperation>
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonStencilOperation : IEquatable<GorgonStencilOperation>

Properties

| Edit this page View Source

Comparison

Property to set or return the comparison function to use for stencil operations.

Declaration
public Comparison Comparison { get; }
Property Value
Type Description
Comparison
Remarks

This specifies the function to evaluate with stencil data being read/written and existing stencil data.

The default value is Always.

| Edit this page View Source

DepthFailOperation

Property to set or return the operation to perform when the depth testing function fails, but stencil testing passes.

Declaration
public StencilOperation DepthFailOperation { get; }
Property Value
Type Description
StencilOperation
Remarks

The default value is Keep.

| Edit this page View Source

FailOperation

Property to set or return the operation to perform when the stencil testing fails.

Declaration
public StencilOperation FailOperation { get; }
Property Value
Type Description
StencilOperation
Remarks

The default value is Keep.

| Edit this page View Source

PassOperation

Property to set or return the operation to perform when the stencil testing passes.

Declaration
public StencilOperation PassOperation { get; }
Property Value
Type Description
StencilOperation
Remarks

The default value is Keep.

Methods

| Edit this page View Source

Equals(GorgonStencilOperation)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(GorgonStencilOperation other)
Parameters
Type Name Description
GorgonStencilOperation other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

| Edit this page View Source

Equals(object)

Indicates whether the current object is equal to another object of the same type.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the obj parameter; otherwise, false.

Overrides
object.Equals(object)
| Edit this page View Source

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 like a hash table.

Overrides
object.GetHashCode()

Implements

IEquatable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author