Struct DepthStencilStencilOpDescription
[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
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
StencilFunction
Gets or sets the comparison function for the stencil test. The default is CompareFunction.Always.
public CompareFunction StencilFunction { readonly get; set; }
Property Value
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
Methods
Equals(DepthStencilStencilOpDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DepthStencilStencilOpDescription other)
Parameters
other
DepthStencilStencilOpDescriptionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
Returns
operator !=(DepthStencilStencilOpDescription, DepthStencilStencilOpDescription)
public static bool operator !=(DepthStencilStencilOpDescription left, DepthStencilStencilOpDescription right)