diff --git a/core/shader/recompiler/Recompiler.cpp b/core/shader/recompiler/Recompiler.cpp index 6f16c524b..5ac877340 100644 --- a/core/shader/recompiler/Recompiler.cpp +++ b/core/shader/recompiler/Recompiler.cpp @@ -23,6 +23,8 @@ #include #include +#include "../../libs/prx/libc/include/general/LogMacros.hpp" + namespace ShaderRecompiler { namespace { @@ -148,6 +150,9 @@ RecompileResult RecompileImpl(const RecompileRequest& request) { result.bdaAbiVersion = program.Info().usesDma ? request.target.bdaAbiVersion : 0u; result.bindings = bindings.bindings; result.pushConstants = bindings.pushConstants; + + std::fprintf(stdout, "[RecompileImpl] shader recompiled\n"); + std::fflush(stdout); return result; } diff --git a/core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp b/core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp index ff5a2ee3a..99bb88e29 100644 --- a/core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp +++ b/core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp @@ -131,12 +131,14 @@ std::uint32_t Select(SpirvEmitterState& state, std::uint32_t type, std::uint32_t template std::uint32_t EmitNative(SpirvEmitterState& state, TArguments... arguments) { - throw std::runtime_error("EmitNative not implemented"); + const auto result = state.module.AllocateId(); + state.module.AddFunction(TOpcode, TypeId(state, TValueType), result, arguments...); + return result; } template std::uint32_t EmitGlsl(SpirvEmitterState& state, TArguments... arguments) { - throw std::runtime_error("EmitGlsl not implemented"); + return EmitNative(state, GlslStd450(state), TOpcode, arguments...); } template