diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/shader_recompiler/precompiled_headers.h | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt index 545d69c7e..967ec9ba7 100644 --- a/src/shader_recompiler/CMakeLists.txt +++ b/src/shader_recompiler/CMakeLists.txt | |||
| @@ -230,6 +230,7 @@ add_library(shader_recompiler STATIC | |||
| 230 | ir_opt/texture_pass.cpp | 230 | ir_opt/texture_pass.cpp |
| 231 | ir_opt/verification_pass.cpp | 231 | ir_opt/verification_pass.cpp |
| 232 | object_pool.h | 232 | object_pool.h |
| 233 | precompiled_headers.h | ||
| 233 | profile.h | 234 | profile.h |
| 234 | program_header.h | 235 | program_header.h |
| 235 | runtime_info.h | 236 | runtime_info.h |
| @@ -258,3 +259,7 @@ else() | |||
| 258 | endif() | 259 | endif() |
| 259 | 260 | ||
| 260 | create_target_directory_groups(shader_recompiler) | 261 | create_target_directory_groups(shader_recompiler) |
| 262 | |||
| 263 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 264 | target_precompile_headers(shader_recompiler PRIVATE precompiled_headers.h) | ||
| 265 | endif() | ||
diff --git a/src/shader_recompiler/precompiled_headers.h b/src/shader_recompiler/precompiled_headers.h new file mode 100644 index 000000000..bd8f64a2e --- /dev/null +++ b/src/shader_recompiler/precompiled_headers.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | // SPDX-FileCopyrightText: 2022 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include <algorithm> | ||
| 7 | #include <chrono> | ||
| 8 | #include <memory> | ||
| 9 | |||
| 10 | #include <fmt/format.h> | ||
| 11 | |||
| 12 | #include "common/assert.h" | ||
| 13 | #include "frontend/maxwell/translate/impl/impl.h" | ||