Disgusting changes to handle the fact that hw shader shaders are 2x as big

This commit is contained in:
wheremyfoodat 2024-07-28 03:38:23 +03:00
parent 44705508ff
commit 37d7bad5aa
6 changed files with 89 additions and 24 deletions

View file

@ -3,6 +3,7 @@
#include "PICA/gpu.hpp"
#include "PICA/pica_frag_config.hpp"
#include "PICA/pica_vert_config.hpp"
#include "PICA/regs.hpp"
#include "PICA/shader_gen_types.hpp"
#include "helpers.hpp"
@ -31,7 +32,7 @@ namespace PICA::ShaderGen {
std::string generate(const PICA::FragmentConfig& config);
std::string getDefaultVertexShader();
// For when PICA shader is acceleration is enabled. Turn the PICA shader source into a proper vertex shader
std::string getVertexShaderAccelerated(const std::string& picaSource, bool usingUbershader);
std::string getVertexShaderAccelerated(const std::string& picaSource, const PICA::VertConfig& vertConfig, bool usingUbershader);
void setTarget(API api, Language language) {
this->api = api;