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 = 1924145348608Field Value ​
ulong
BackStencilFailOpBits ​
public const ulong BackStencilFailOpBits = 240518168576Field Value ​
ulong
BackStencilFuncBits ​
public const ulong BackStencilFuncBits = 15728640Field Value ​
ulong
BackStencilPassOpBits ​
public const ulong BackStencilPassOpBits = 15393162788864Field Value ​
ulong
DepthFuncBits ​
public const ulong DepthFuncBits = 60Field Value ​
ulong
DepthTestEnableBits ​
public const ulong DepthTestEnableBits = 1Field Value ​
ulong
DepthWriteEnableBits ​
public const ulong DepthWriteEnableBits = 2Field Value ​
ulong
FrontStencilDepthFailOpBits ​
public const ulong FrontStencilDepthFailOpBits = 1879048192Field Value ​
ulong
FrontStencilFailOpBits ​
public const ulong FrontStencilFailOpBits = 234881024Field Value ​
ulong
FrontStencilFuncBits ​
public const ulong FrontStencilFuncBits = 983040Field Value ​
ulong
FrontStencilPassOpBits ​
public const ulong FrontStencilPassOpBits = 30064771072Field Value ​
ulong
StencilEnableBits ​
public const ulong StencilEnableBits = 16777216Field Value ​
ulong
StencilReadMaskBits ​
public const ulong StencilReadMaskBits = 71776119061217280Field Value ​
ulong
StencilWriteMaskBits ​
public const ulong StencilWriteMaskBits = 18374686479671623680Field Value ​
ulong
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 ​
bool
DepthWriteEnable ​
Whether depth writes are enabled.
public bool DepthWriteEnable { readonly get; set; }Property Value ​
bool
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 ​
bool
StencilReadMask ​
Mask applied to stored and reference values before comparison.
public byte StencilReadMask { readonly get; set; }Property Value ​
byte
StencilWriteMask ​
Mask of stencil bits that writes and stencil clears can touch.
public byte StencilWriteMask { readonly get; set; }Property Value ​
byte
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 ​
ulong

