Skip to content

Commit

Permalink
Merge pull request #546 from wheremyfoodat/nyom
Browse files Browse the repository at this point in the history
Separate graphics API/Language types from the fragment recompiler
  • Loading branch information
wheremyfoodat authored Jul 21, 2024
2 parents a419312 + 2a6cd3c commit 69b07da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ set(HEADER_FILES include/emulator.hpp include/helpers.hpp include/termcolor.hpp
include/audio/dsp_core.hpp include/audio/null_core.hpp include/audio/teakra_core.hpp
include/audio/miniaudio_device.hpp include/ring_buffer.hpp include/bitfield.hpp include/audio/dsp_shared_mem.hpp
include/audio/hle_core.hpp include/capstone.hpp include/audio/aac.hpp include/PICA/pica_frag_config.hpp
include/PICA/pica_frag_uniforms.hpp
include/PICA/pica_frag_uniforms.hpp include/PICA/shader_gen_types.hpp
)

cmrc_add_resource_library(
Expand Down
7 changes: 1 addition & 6 deletions include/PICA/shader_gen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions include/PICA/shader_gen_types.hpp
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 69b07da

Please sign in to comment.