summaryrefslogblamecommitdiffstats
path: root/src/video_core/textures/workers.cpp
blob: a71c305f49193ddda8ef2857eac4edbb96d037ff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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