program.h 890 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <array>
  5. #include <string>
  6. #include "shader_recompiler/frontend/ir/abstract_syntax_list.h"
  7. #include "shader_recompiler/frontend/ir/basic_block.h"
  8. #include "shader_recompiler/program_header.h"
  9. #include "shader_recompiler/shader_info.h"
  10. #include "shader_recompiler/stage.h"
  11. namespace Shader::IR {
  12. struct Program {
  13. AbstractSyntaxList syntax_list;
  14. BlockList blocks;
  15. BlockList post_order_blocks;
  16. Info info;
  17. Stage stage{};
  18. std::array<u32, 3> workgroup_size{};
  19. OutputTopology output_topology{};
  20. u32 output_vertices{};
  21. u32 invocations{};
  22. u32 local_memory_size{};
  23. u32 shared_memory_size{};
  24. bool is_geometry_passthrough{};
  25. };
  26. [[nodiscard]] std::string DumpProgram(const Program& program);
  27. } // namespace Shader::IR