GPU: Base work for hardware renderer

This commit is contained in:
Connor McLaughlin
2019-09-12 12:53:04 +10:00
parent c0853de6a6
commit 4706a906d5
10 changed files with 627 additions and 131 deletions

28
src/pse/gpu_hw.h Normal file
View File

@ -0,0 +1,28 @@
#pragma once
#include "gpu.h"
#include <string>
#include <vector>
class GPU_HW : public GPU
{
public:
GPU_HW();
virtual ~GPU_HW();
protected:
struct HWVertex
{
s32 x;
s32 y;
u32 color;
u32 texcoord;
};
void LoadVertices(RenderCommand rc, u32 num_vertices);
std::string GenerateVertexShader(bool textured);
std::string GenerateFragmentShader(bool textured);
std::vector<HWVertex> m_vertex_staging;
};