VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
stencilParameters.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 09.11.2025.
5//
6#pragma once
7
8#include <cstdint>
9
10#include "core/stringIds.h"
11
12namespace visutwin::canvas
13{
18 {
19 public:
24 uint32_t key();
25
26 private:
27 // Evaluates the key based on current parameters
28 void evalKey();
29
30 uint32_t _func;
31 uint32_t _ref;
32 uint32_t _fail;
33 uint32_t _zfail;
34 uint32_t _zpass;
35 uint32_t _readMask;
36 uint32_t _writeMask;
37
38 uint32_t _key = 0;
39 bool _dirty = true;
40
41 // Shared string ID cache for generating unique keys
42 static StringIds stringIds;
43 };
44}