[GPU] Implement initial support for multi-texturing

This commit is contained in:
fleroviux 2023-06-20 00:01:12 +02:00
parent 170fe9a4b2
commit 9b1ed2084f
3 changed files with 72 additions and 19 deletions

View file

@ -2,6 +2,7 @@
#include <array>
#include <span>
#include "PICA/float_types.hpp"
#include "helpers.hpp"
#include "logger.hpp"
#include "opengl.hpp"
@ -14,7 +15,11 @@ class GPU;
struct Vertex {
OpenGL::vec4 position;
OpenGL::vec4 colour;
OpenGL::vec2 UVs;
OpenGL::vec2 texcoord0;
OpenGL::vec2 texcoord1;
Floats::f24 texcoord0_w;
u32 padding; // pad so that texcoord2 is 64-bit aligned
OpenGL::vec2 texcoord2;
};
class Renderer {