// Copyright 2017 Citra Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. #include #include #include #include #include "common/common_types.h" #include "video_core/shader/shader.h" namespace Pica { namespace Shader { namespace Decompiler { using ProgramCode = std::array; using SwizzleData = std::array; using RegGetter = std::function; std::string GetCommonDeclarations(); boost::optional DecompileProgram(const ProgramCode& program_code, const SwizzleData& swizzle_data, u32 main_offset, const RegGetter& inputreg_getter, const RegGetter& outputreg_getter, bool sanitize_mul, bool is_gs); } // namespace Decompiler } // namespace Shader } // namespace Pica