2024-03-06 06:26:38 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
2024-03-05 09:42:40 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/settings.h"
|
|
|
|
|
|
|
|
static inline Settings::ScalingFilter GetScalingFilter() {
|
|
|
|
return Settings::values.scaling_filter.GetValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Settings::AntiAliasing GetAntiAliasing() {
|
|
|
|
return Settings::values.anti_aliasing.GetValue();
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Settings::ScalingFilter GetScalingFilterForAppletCapture() {
|
|
|
|
return Settings::ScalingFilter::Bilinear;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Settings::AntiAliasing GetAntiAliasingForAppletCapture() {
|
|
|
|
return Settings::AntiAliasing::None;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct PresentFilters {
|
|
|
|
Settings::ScalingFilter (*get_scaling_filter)();
|
|
|
|
Settings::AntiAliasing (*get_anti_aliasing)();
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr PresentFilters PresentFiltersForDisplay{
|
|
|
|
.get_scaling_filter = &GetScalingFilter,
|
|
|
|
.get_anti_aliasing = &GetAntiAliasing,
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr PresentFilters PresentFiltersForAppletCapture{
|
|
|
|
.get_scaling_filter = &GetScalingFilterForAppletCapture,
|
|
|
|
.get_anti_aliasing = &GetAntiAliasingForAppletCapture,
|
|
|
|
};
|