LibGL+LibSoftGPU: Add multiple texture coordinates to vertex struct

We now have one set of texture coordinates per texture unit.
Texture coordinate generation and texture coordinate assignment is
currently only stubbed. This will be rectified in another commit.
This commit is contained in:
Stephan Unverwerth 2022-01-15 18:33:55 +01:00 committed by Andreas Kling
commit 7571ef0343
Notes: sideshowbarker 2024-07-17 20:39:11 +09:00
5 changed files with 22 additions and 15 deletions

View file

@ -10,6 +10,7 @@
#include <LibGfx/Vector2.h>
#include <LibGfx/Vector3.h>
#include <LibGfx/Vector4.h>
#include <LibSoftGPU/Config.h>
namespace SoftGPU {
@ -18,7 +19,7 @@ struct PixelQuad final {
Vector3<AK::SIMD::f32x4> barycentrics;
AK::SIMD::f32x4 depth;
Vector4<AK::SIMD::f32x4> vertex_color;
Vector4<AK::SIMD::f32x4> uv;
Array<Vector4<AK::SIMD::f32x4>, NUM_SAMPLERS> texture_coordinates;
Vector4<AK::SIMD::f32x4> out_color;
AK::SIMD::f32x4 fog_depth;
AK::SIMD::i32x4 mask;