program.h 625 B

12345678910111213141516171819202122232425262728
  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 <array>
  6. #include <string>
  7. #include <boost/container/small_vector.hpp>
  8. #include "shader_recompiler/frontend/ir/basic_block.h"
  9. #include "shader_recompiler/shader_info.h"
  10. #include "shader_recompiler/stage.h"
  11. namespace Shader::IR {
  12. struct Program {
  13. BlockList blocks;
  14. BlockList post_order_blocks;
  15. Info info;
  16. Stage stage{};
  17. std::array<u32, 3> workgroup_size{};
  18. };
  19. [[nodiscard]] std::string DumpProgram(const Program& program);
  20. } // namespace Shader::IR