diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir/program.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/program.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/program.h b/src/shader_recompiler/frontend/ir/program.h new file mode 100644 index 000000000..ebcaa8bc2 --- /dev/null +++ b/src/shader_recompiler/frontend/ir/program.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <array> | ||
| 8 | #include <string> | ||
| 9 | |||
| 10 | #include "shader_recompiler/frontend/ir/abstract_syntax_list.h" | ||
| 11 | #include "shader_recompiler/frontend/ir/basic_block.h" | ||
| 12 | #include "shader_recompiler/program_header.h" | ||
| 13 | #include "shader_recompiler/shader_info.h" | ||
| 14 | #include "shader_recompiler/stage.h" | ||
| 15 | |||
| 16 | namespace Shader::IR { | ||
| 17 | |||
| 18 | struct Program { | ||
| 19 | AbstractSyntaxList syntax_list; | ||
| 20 | BlockList blocks; | ||
| 21 | BlockList post_order_blocks; | ||
| 22 | Info info; | ||
| 23 | Stage stage{}; | ||
| 24 | std::array<u32, 3> workgroup_size{}; | ||
| 25 | OutputTopology output_topology{}; | ||
| 26 | u32 output_vertices{}; | ||
| 27 | u32 invocations{}; | ||
| 28 | u32 local_memory_size{}; | ||
| 29 | u32 shared_memory_size{}; | ||
| 30 | bool is_geometry_passthrough{}; | ||
| 31 | }; | ||
| 32 | |||
| 33 | [[nodiscard]] std::string DumpProgram(const Program& program); | ||
| 34 | |||
| 35 | } // namespace Shader::IR | ||