Merge pull request #546 from wheremyfoodat/nyom

Separate graphics API/Language types from the fragment recompiler
This commit is contained in:
wheremyfoodat
2024-07-21 13:41:57 +00:00
committed by GitHub
3 changed files with 11 additions and 7 deletions

View File

@@ -4,15 +4,10 @@
#include "PICA/gpu.hpp"
#include "PICA/pica_frag_config.hpp"
#include "PICA/regs.hpp"
#include "PICA/shader_gen_types.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 {
API api;
Language language;

View File

@@ -0,0 +1,9 @@
#pragma once
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 };
} // namespace PICA::ShaderGen