emit_glasm.h 803 B

123456789101112131415161718192021222324
  1. // Copyright 2021 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include "shader_recompiler/backend/bindings.h"
  7. #include "shader_recompiler/frontend/ir/program.h"
  8. #include "shader_recompiler/profile.h"
  9. namespace Shader::Backend::GLASM {
  10. [[nodiscard]] std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info,
  11. IR::Program& program, Bindings& bindings);
  12. [[nodiscard]] inline std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info,
  13. IR::Program& program) {
  14. Bindings binding;
  15. return EmitGLASM(profile, runtime_info, program, binding);
  16. }
  17. } // namespace Shader::Backend::GLASM