program.h 684 B

123456789101112131415161718192021222324252627282930
  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. u32 local_memory_size{};
  19. u32 shared_memory_size{};
  20. };
  21. [[nodiscard]] std::string DumpProgram(const Program& program);
  22. } // namespace Shader::IR