Struct RsDepthStencilStateDesc ​
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Describes the depth and stencil state configuration. The stencil reference value is not part of the descriptor; D3D and Vulkan set it at bind time.
public record struct RsDepthStencilStateDesc : IEquatable<RsDepthStencilStateDesc>Implements ​
IEquatable<RsDepthStencilStateDesc>
Constructors ​
RsDepthStencilStateDesc(ulong, int) ​
Reads the descriptor from packed bits.
public RsDepthStencilStateDesc(ulong depthStencilBits, int vcsVersion)Parameters ​
depthStencilBits ulong
The packed bitfield value.
vcsVersion int
The VCS version, which selects the bit layout.
RsDepthStencilStateDesc(BinaryReader) ​
Reads the descriptor from a binary reader.
public RsDepthStencilStateDesc(BinaryReader datareader)Parameters ​
datareader BinaryReader
Fields ​
BackStencilDepthFailOpBits ​
public const ulong BackStencilDepthFailOpBits = 962072674304Field Value ​
BackStencilFailOpBits ​
public const ulong BackStencilFailOpBits = 120259084288Field Value ​
BackStencilFuncBits ​
public const ulong BackStencilFuncBits = 15728640Field Value ​
BackStencilPassOpBits ​
public const ulong BackStencilPassOpBits = 7696581394432Field Value ​
DepthFuncBits ​
public const ulong DepthFuncBits = 60Field Value ​
DepthTestEnableBits ​
public const ulong DepthTestEnableBits = 1Field Value ​
DepthWriteEnableBits ​
public const ulong DepthWriteEnableBits = 2Field Value ​
FrontStencilDepthFailOpBits ​
public const ulong FrontStencilDepthFailOpBits = 1879048192Field Value ​
FrontStencilFailOpBits ​
public const ulong FrontStencilFailOpBits = 234881024Field Value ​
FrontStencilFuncBits ​
public const ulong FrontStencilFuncBits = 983040Field Value ​
FrontStencilPassOpBits ​
public const ulong FrontStencilPassOpBits = 15032385536Field Value ​
StencilEnableBits ​
public const ulong StencilEnableBits = 16777216Field Value ​
StencilReadMaskBits ​
public const ulong StencilReadMaskBits = 71776119061217280Field Value ​
StencilWriteMaskBits ​
public const ulong StencilWriteMaskBits = 18374686479671623680Field Value ​
Properties ​
BackStencilDepthFailOp ​
Back-face operation when the stencil test passes but the depth test fails.
public RsStencilOp BackStencilDepthFailOp { readonly get; set; }Property Value ​
BackStencilFailOp ​
Back-face operation when the stencil test fails.
public RsStencilOp BackStencilFailOp { readonly get; set; }Property Value ​
BackStencilFunc ​
Back-face stencil comparison function.
public RsComparison BackStencilFunc { readonly get; set; }Property Value ​
BackStencilPassOp ​
Back-face operation when both stencil and depth tests pass.
public RsStencilOp BackStencilPassOp { readonly get; set; }Property Value ​
DepthFunc ​
Depth comparison function.
public RsComparison DepthFunc { readonly get; set; }Property Value ​
DepthTestEnable ​
Whether depth testing is enabled.
public bool DepthTestEnable { readonly get; set; }Property Value ​
DepthWriteEnable ​
Whether depth writes are enabled.
public bool DepthWriteEnable { readonly get; set; }Property Value ​
FrontStencilDepthFailOp ​
Front-face operation when the stencil test passes but the depth test fails.
public RsStencilOp FrontStencilDepthFailOp { readonly get; set; }Property Value ​
FrontStencilFailOp ​
Front-face operation when the stencil test fails.
public RsStencilOp FrontStencilFailOp { readonly get; set; }Property Value ​
FrontStencilFunc ​
Front-face stencil comparison function.
public RsComparison FrontStencilFunc { readonly get; set; }Property Value ​
FrontStencilPassOp ​
Front-face operation when both stencil and depth tests pass.
public RsStencilOp FrontStencilPassOp { readonly get; set; }Property Value ​
StencilEnable ​
Whether stencil testing is enabled.
public bool StencilEnable { readonly get; set; }Property Value ​
StencilReadMask ​
Mask applied to stored and reference values before comparison.
public byte StencilReadMask { readonly get; set; }Property Value ​
StencilWriteMask ​
Mask of stencil bits that writes and stencil clears can touch.
public byte StencilWriteMask { readonly get; set; }Property Value ​
Methods ​
Delta(in RsDepthStencilStateDesc) ​
Returns the bits that differ between this descriptor and another, so a caller can test a field's mask to see whether it changed.
public readonly ulong Delta(in RsDepthStencilStateDesc other)Parameters ​
other RsDepthStencilStateDesc
The descriptor to compare against.
Returns ​
See Also ​
https://s2v.app/SchemaExplorer/cs2/rendersystemdx11/RsDepthStencilStateDesc_t

