diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-05-24 03:55:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 03:55:45 +0200 |
commit | 76f63889692a0836dafd626841aa050ef26b407b (patch) | |
tree | 442b586dc2ead257e4411101b05a06298c97e423 /src/video_core/textures/workers.cpp | |
parent | Merge pull request #10388 from GPUCode/fence-wait (diff) | |
parent | textures: add BC1 and BC3 compressors and recompression setting (diff) | |
download | yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.gz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.bz2 yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.lz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.xz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.zst yuzu-76f63889692a0836dafd626841aa050ef26b407b.zip |
Diffstat (limited to 'src/video_core/textures/workers.cpp')
-rw-r--r-- | src/video_core/textures/workers.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/textures/workers.cpp b/src/video_core/textures/workers.cpp new file mode 100644 index 000000000..a71c305f4 --- /dev/null +++ b/src/video_core/textures/workers.cpp @@ -0,0 +1,15 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "video_core/textures/workers.h" + +namespace Tegra::Texture { + +Common::ThreadWorker& GetThreadWorkers() { + static Common::ThreadWorker workers{std::max(std::thread::hardware_concurrency(), 2U) / 2, + "ImageTranscode"}; + + return workers; +} + +} // namespace Tegra::Texture |