Add GLSL shader gen files

This commit is contained in:
wheremyfoodat 2024-01-18 00:27:17 +02:00
parent b5718010ee
commit 6f3c7d358b
3 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,24 @@
#pragma once
#include <string>
#include "PICA/gpu.hpp"
#include "PICA/regs.hpp"
#include "helpers.hpp"
namespace PICA::ShaderGen {
// Graphics API this shader is targetting
enum class API { GL, GLES, Vulkan };
// Shading language to use (Only GLSL for the time being)
enum class Language { GLSL };
class FragmentGenerator {
using PICARegs = std::array<u32, 0x300>;
API api;
Language language;
public:
FragmentGenerator(API api, Language language) : api(api), language(language) {}
std::string generate(const PICARegs& regs);
};
}; // namespace PICA::ShaderGen