summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/PixelQuad.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/PixelQuad.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/PixelQuad.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Userland/Libraries/LibSoftGPU/PixelQuad.h b/Userland/Libraries/LibSoftGPU/PixelQuad.h
new file mode 100644
index 0000000000..ce2e09e43d
--- /dev/null
+++ b/Userland/Libraries/LibSoftGPU/PixelQuad.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <AK/SIMD.h>
+#include <LibGfx/Vector2.h>
+#include <LibGfx/Vector3.h>
+#include <LibGfx/Vector4.h>
+
+namespace SoftGPU {
+
+struct PixelQuad final {
+ Vector2<AK::SIMD::i32x4> screen_coordinates;
+ Vector3<AK::SIMD::f32x4> barycentrics;
+ AK::SIMD::f32x4 depth;
+ Vector4<AK::SIMD::f32x4> vertex_color;
+ Vector4<AK::SIMD::f32x4> uv;
+ Vector4<AK::SIMD::f32x4> out_color;
+ AK::SIMD::f32x4 fog_depth;
+ AK::SIMD::i32x4 mask;
+};
+
+}