summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-03-27 15:24:10 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 11:32:24 +0200
commit8f359bf758c277cb81c9907428d7e7aa1ac0d8ef (patch)
tree34329a5c2cbe97f586a02b7028ace1bb4e138373 /Userland/Libraries/LibGPU
parente416380826a680ca4f1de630f5407b1e997943bc (diff)
downloadserenity-8f359bf758c277cb81c9907428d7e7aa1ac0d8ef.zip
LibGPU+LibSoftGPU: Move RasterPosition into its own header in LibGPU
Diffstat (limited to 'Userland/Libraries/LibGPU')
-rw-r--r--Userland/Libraries/LibGPU/RasterPosition.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGPU/RasterPosition.h b/Userland/Libraries/LibGPU/RasterPosition.h
new file mode 100644
index 0000000000..6d2b11362e
--- /dev/null
+++ b/Userland/Libraries/LibGPU/RasterPosition.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
+ * Copyright (c) 2022, Stephan Unverwerth <s.unverwerth@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <LibGfx/Vector4.h>
+
+namespace GPU {
+
+struct RasterPosition {
+ FloatVector4 window_coordinates { 0.0f, 0.0f, 0.0f, 1.0f };
+ float eye_coordinate_distance { 0.0f };
+ bool valid { true };
+ FloatVector4 color_rgba { 1.0f, 1.0f, 1.0f, 1.0f };
+ float color_index { 1.0f };
+ FloatVector4 texture_coordinates { 0.0f, 0.0f, 0.0f, 1.0f };
+};
+
+}