summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@serenityos.org>2022-03-27 15:28:08 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-06 11:32:24 +0200
commit5a5596b381c8ecf257aa0b41bab21d26c6d86986 (patch)
tree05a326ba7335b32331c5734e0df5485c1f813f8c /Userland/Libraries/LibSoftGPU/Device.h
parent8f359bf758c277cb81c9907428d7e7aa1ac0d8ef (diff)
downloadserenity-5a5596b381c8ecf257aa0b41bab21d26c6d86986.zip
LibGL+LibGPU+LibSoftGPU: Move TexCoordGenerationConfig into LibGPU
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.h')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.h b/Userland/Libraries/LibSoftGPU/Device.h
index 979681f83e..310c89abd2 100644
--- a/Userland/Libraries/LibSoftGPU/Device.h
+++ b/Userland/Libraries/LibSoftGPU/Device.h
@@ -19,6 +19,7 @@
#include <LibGPU/RasterPosition.h>
#include <LibGPU/SamplerConfig.h>
#include <LibGPU/StencilConfiguration.h>
+#include <LibGPU/TexCoordGenerationConfig.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Matrix3x3.h>
#include <LibGfx/Matrix4x4.h>
@@ -36,11 +37,6 @@
namespace SoftGPU {
-struct TexCoordGenerationConfig {
- GPU::TexCoordGenerationMode mode { GPU::TexCoordGenerationMode::EyeLinear };
- FloatVector4 coefficients {};
-};
-
struct RasterizerOptions {
bool shade_smooth { true };
bool enable_stencil_test { false };
@@ -75,7 +71,7 @@ struct RasterizerOptions {
bool cull_back { true };
bool cull_front { false };
Array<u8, NUM_SAMPLERS> texcoord_generation_enabled_coordinates {};
- Array<Array<TexCoordGenerationConfig, 4>, NUM_SAMPLERS> texcoord_generation_config {};
+ Array<Array<GPU::TexCoordGenerationConfig, 4>, NUM_SAMPLERS> texcoord_generation_config {};
Gfx::IntRect viewport;
bool lighting_enabled { false };
bool color_material_enabled { false };