Table of Contents

Struct DepthStencilStencilOpDescription

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll
[DataContract]
public struct DepthStencilStencilOpDescription : IEquatable<DepthStencilStencilOpDescription>
Implements
Inherited Members

Properties

StencilDepthBufferFail

Gets or sets the stencil operation to perform if the stencil test passes and the depth-test fails. The default is StencilOperation.Keep.

public StencilOperation StencilDepthBufferFail { readonly get; set; }

Property Value

StencilOperation

StencilFail

Gets or sets the stencil operation to perform if the stencil test fails. The default is StencilOperation.Keep.

public StencilOperation StencilFail { readonly get; set; }

Property Value

StencilOperation

StencilFunction

Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always.

public CompareFunction StencilFunction { readonly get; set; }

Property Value

CompareFunction

StencilPass

Gets or sets the stencil operation to perform if the stencil test passes. The default is StencilOperation.Keep.

public StencilOperation StencilPass { readonly get; set; }

Property Value

StencilOperation

Methods

Equals(DepthStencilStencilOpDescription)

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

public bool Equals(DepthStencilStencilOpDescription other)

Parameters

other DepthStencilStencilOpDescription

An object to compare with this object.

Returns

bool

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

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

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.

Operators

operator ==(DepthStencilStencilOpDescription, DepthStencilStencilOpDescription)

public static bool operator ==(DepthStencilStencilOpDescription left, DepthStencilStencilOpDescription right)

Parameters

left DepthStencilStencilOpDescription
right DepthStencilStencilOpDescription

Returns

bool

operator !=(DepthStencilStencilOpDescription, DepthStencilStencilOpDescription)

public static bool operator !=(DepthStencilStencilOpDescription left, DepthStencilStencilOpDescription right)

Parameters

left DepthStencilStencilOpDescription
right DepthStencilStencilOpDescription

Returns

bool