aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/post_processing/fx_preset.h
blob: 23372b9495d4062cb133e93340faca7831d73e2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later

#pragma once

#include <filesystem>
#include <string>
#include <string_view>
#include <vector>

namespace VideoCore {

struct FxPresetDesc {
    std::string file;
    std::string name;
    std::string description;
    std::string chain;
    bool bundled{};
};

std::filesystem::path GetFxPresetDirectory();

void ReloadFxPresetCatalog();

const std::vector<FxPresetDesc>& GetFxPresetCatalog();

const FxPresetDesc* FindFxPreset(std::string_view name);

bool ApplyFxPreset(std::string_view name);

bool SaveFxPreset(std::string_view name, std::string_view description);

bool DeleteFxPreset(std::string_view name);

bool IsFxPresetName(std::string_view name);

std::string GetActiveFxPreset();

void SetActiveFxPreset(std::string_view name);

bool IsActiveFxPresetModified();

} // namespace VideoCore