> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "RsStencilStateDesc_t"
navbar: dynamic
asidebar: hide
---
# RsStencilStateDesc\_t

Schema class in module `rendersystemdx11`.

## Summary

- Kind: `class`
- Module: `rendersystemdx11`
- Size: `6 (0x06)`
- Size bytes: `6`
- Parent: `value.DeclaredClass`
- Inherited fields: `0`
- Product: Counter-Strike 2

## Inheritance

- [value.DeclaredClass](/cs2/api_reference/engine/value#valuedeclaredclass) (class)

## Own Fields

| Field | Type | Offset | Bits | Default | Metadata |
| --- | --- | --- | --- | --- | --- |
| `m_frontStencilFunc` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "4 (offset not encoded by schema)" |
| `m_backStencilFunc` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "4 (offset not encoded by schema)" |
| `m_bStencilEnable` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "1 (offset not encoded by schema)" |
| `m_frontStencilFailOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_frontStencilDepthFailOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_frontStencilPassOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_backStencilFailOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_backStencilDepthFailOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_backStencilPassOp` | [value.Bitfield](/cs2/api_reference/engine/value#valuebitfield) | 0 (0x00) | - | - | `Bits`: "3 (offset not encoded by schema)" |
| `m_nStencilReadMask` | [number](/cs2/api_reference/lua/base#number) | 4 (0x04) | - | - | - |
| `m_nStencilWriteMask` | [number](/cs2/api_reference/lua/base#number) | 5 (0x05) | - | - | - |

## Referenced By

| Name | Field | Module | Relation |
| --- | --- | --- | --- |
| [RsDepthStencilStateDesc\_t](/cs2/dumped_data/schema/rendersystemdx11/RsDepthStencilStateDesc_t) | `m_stencilState` | rendersystemdx11 | - |

