emit_glsl.h 711 B

1234567891011121314151617181920212223
  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::GLSL {
  10. [[nodiscard]] std::string EmitGLSL(const Profile& profile, const RuntimeInfo& runtime_info,
  11. IR::Program& program, Bindings& bindings);
  12. [[nodiscard]] inline std::string EmitGLSL(const Profile& profile, IR::Program& program) {
  13. Bindings binding;
  14. return EmitGLSL(profile, {}, program, binding);
  15. }
  16. } // namespace Shader::Backend::GLSL