summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU/StencilConfiguration.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-03-27 15:20:51 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 11:32:24 +0200
commite416380826a680ca4f1de630f5407b1e997943bc (patch)
tree1f599f33f973ff32f1ebe1d21a8f11fec7ff8bfe /Userland/Libraries/LibGPU/StencilConfiguration.h
parentb652db1f543c7c32f94a8d5cd9865ca7e02f09fd (diff)
downloadserenity-e416380826a680ca4f1de630f5407b1e997943bc.zip
LibGL+LibGPU+LibSoftGPU: Move StencilConfiguration.h to LibGPU
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;
+};
+
+}