Struct DepthStencilStateDescription
Describes a depth stencil state.
[DataContract]
public struct DepthStencilStateDescription : IEquatable<DepthStencilStateDescription>
- Implements
- Inherited Members
Constructors
DepthStencilStateDescription(bool, bool)
Initializes a new instance of the DepthStencilStateDescription class.
public DepthStencilStateDescription(bool depthEnable, bool depthWriteEnable)
Parameters
Fields
BackFace
Identify how to use the results of the depth test and the stencil test for pixels whose surface normal is facing away the camera.
public DepthStencilStencilOpDescription BackFace
Field Value
DepthBufferEnable
Enables or disables depth buffering. The default is true.
public bool DepthBufferEnable
Field Value
DepthBufferFunction
Gets or sets the comparison function for the depth-buffer test. The default is CompareFunction.LessEqual
public CompareFunction DepthBufferFunction
Field Value
DepthBufferWriteEnable
Enables or disables writing to the depth buffer. The default is true.
public bool DepthBufferWriteEnable
Field Value
FrontFace
Identify how to use the results of the depth test and the stencil test for pixels whose surface normal is facing towards the camera.
public DepthStencilStencilOpDescription FrontFace
Field Value
StencilEnable
Gets or sets stencil enabling. The default is false.
public bool StencilEnable
Field Value
StencilMask
Gets or sets the mask applied to the reference value and each stencil buffer entry to determine the significant bits for the stencil test. The default mask is byte.MaxValue.
public byte StencilMask
Field Value
StencilWriteMask
Gets or sets the write mask applied to values written into the stencil buffer. The default mask is byte.MaxValue.
public byte StencilWriteMask
Field Value
Properties
Default
Gets default values for this instance.
public static DepthStencilStateDescription Default { get; }
Property Value
Methods
Clone()
public DepthStencilStateDescription Clone()
Returns
Equals(DepthStencilStateDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DepthStencilStateDescription other)
Parameters
other
DepthStencilStateDescriptionAn 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.
SetDefault()
Sets default values for this instance.
public DepthStencilStateDescription SetDefault()
Returns
Operators
operator ==(DepthStencilStateDescription, DepthStencilStateDescription)
public static bool operator ==(DepthStencilStateDescription left, DepthStencilStateDescription right)
Parameters
Returns
operator !=(DepthStencilStateDescription, DepthStencilStateDescription)
public static bool operator !=(DepthStencilStateDescription left, DepthStencilStateDescription right)