summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU/StencilConfiguration.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGPU/StencilConfiguration.h')
-rw-r--r--Userland/Libraries/LibGPU/StencilConfiguration.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGPU/StencilConfiguration.h b/Userland/Libraries/LibGPU/StencilConfiguration.h
new file mode 100644
index 0000000000..b68b2d6ba1
--- /dev/null
+++ b/Userland/Libraries/LibGPU/StencilConfiguration.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <LibGPU/Config.h>
+#include <LibGPU/Enums.h>
+
+namespace GPU {
+
+struct StencilConfiguration {
+ StencilTestFunction test_function;
+ StencilType reference_value;
+ StencilType test_mask;
+
+ StencilOperation on_stencil_test_fail;
+ StencilOperation on_depth_test_fail;
+ StencilOperation on_pass;
+ StencilType write_mask;
+};
+
+}