Struct D3D11DepthStencilOperationDesc
Stencil operations that can be performed based on the results of stencil test.
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11DepthStencilOperationDesc : IEquatable<D3D11DepthStencilOperationDesc>
Constructors
|
Edit this page
View Source
D3D11DepthStencilOperationDesc(D3D11StencilOperation, D3D11StencilOperation, D3D11StencilOperation, D3D11ComparisonFunction)
Declaration
public D3D11DepthStencilOperationDesc(D3D11StencilOperation stencilFailOperation, D3D11StencilOperation stencilDepthFailOperation, D3D11StencilOperation stencilPassOperation, D3D11ComparisonFunction stencilFunction)
Parameters
Properties
|
Edit this page
View Source
StencilDepthFailOperation
Gets or sets the stencil operation to perform when stencil testing passes and depth testing fails.
Declaration
public D3D11StencilOperation StencilDepthFailOperation { get; set; }
Property Value
|
Edit this page
View Source
StencilFailOperation
Gets or sets the stencil operation to perform when stencil testing fails.
Declaration
public D3D11StencilOperation StencilFailOperation { get; set; }
Property Value
|
Edit this page
View Source
StencilFunction
Gets or sets a function that compares stencil data against existing stencil data.
Declaration
public D3D11ComparisonFunction StencilFunction { get; set; }
Property Value
|
Edit this page
View Source
StencilPassOperation
Gets or sets the stencil operation to perform when stencil testing and depth testing both pass.
Declaration
public D3D11StencilOperation StencilPassOperation { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(D3D11DepthStencilOperationDesc)
Declaration
public readonly bool Equals(D3D11DepthStencilOperationDesc other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static D3D11DepthStencilOperationDesc NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<D3D11DepthStencilOperationDesc>)
Declaration
public static void NativeReadFrom(nint buffer, Span<D3D11DepthStencilOperationDesc> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in D3D11DepthStencilOperationDesc)
Declaration
public static void NativeWriteTo(nint buffer, in D3D11DepthStencilOperationDesc obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<D3D11DepthStencilOperationDesc>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<D3D11DepthStencilOperationDesc> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(D3D11DepthStencilOperationDesc, D3D11DepthStencilOperationDesc)
Declaration
public static bool operator ==(D3D11DepthStencilOperationDesc left, D3D11DepthStencilOperationDesc right)
Parameters
Returns
|
Edit this page
View Source
operator !=(D3D11DepthStencilOperationDesc, D3D11DepthStencilOperationDesc)
Declaration
public static bool operator !=(D3D11DepthStencilOperationDesc left, D3D11DepthStencilOperationDesc right)
Parameters
Returns
Implements