mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
Add PPfilter to Settings Dialog GUI
This commit is contained in:
parent
8885f4377b
commit
b9b09c9492
@ -331,6 +331,10 @@ void setVblankDiv(u32 value) {
|
|||||||
vblankDivider = value;
|
vblankDivider = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setPostProcessingFilter(const std::string& type) {
|
||||||
|
ppFilter = type;
|
||||||
|
}
|
||||||
|
|
||||||
void setIsFullscreen(bool enable) {
|
void setIsFullscreen(bool enable) {
|
||||||
isFullscreen = enable;
|
isFullscreen = enable;
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,7 @@ void setNullGpu(bool enable);
|
|||||||
void setCopyGPUCmdBuffers(bool enable);
|
void setCopyGPUCmdBuffers(bool enable);
|
||||||
void setDumpShaders(bool enable);
|
void setDumpShaders(bool enable);
|
||||||
void setVblankDiv(u32 value);
|
void setVblankDiv(u32 value);
|
||||||
|
void setPostProcessingFilter(const std::string& type);
|
||||||
void setGpuId(s32 selectedGpuId);
|
void setGpuId(s32 selectedGpuId);
|
||||||
void setScreenWidth(u32 width);
|
void setScreenWidth(u32 width);
|
||||||
void setScreenHeight(u32 height);
|
void setScreenHeight(u32 height);
|
||||||
|
@ -91,6 +91,9 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices,
|
|||||||
ui->backButtonBehaviorComboBox->addItem(tr("Touchpad Right"), "right");
|
ui->backButtonBehaviorComboBox->addItem(tr("Touchpad Right"), "right");
|
||||||
ui->backButtonBehaviorComboBox->addItem(tr("None"), "none");
|
ui->backButtonBehaviorComboBox->addItem(tr("None"), "none");
|
||||||
|
|
||||||
|
ui->ppFilterComboBox->addItem(tr("linear"));
|
||||||
|
ui->ppFilterComboBox->addItem(tr("nearest"));
|
||||||
|
|
||||||
InitializeEmulatorLanguages();
|
InitializeEmulatorLanguages();
|
||||||
LoadValuesFromConfig();
|
LoadValuesFromConfig();
|
||||||
|
|
||||||
@ -302,6 +305,7 @@ void SettingsDialog::LoadValuesFromConfig() {
|
|||||||
ui->widthSpinBox->setValue(toml::find_or<int>(data, "GPU", "screenWidth", 1280));
|
ui->widthSpinBox->setValue(toml::find_or<int>(data, "GPU", "screenWidth", 1280));
|
||||||
ui->heightSpinBox->setValue(toml::find_or<int>(data, "GPU", "screenHeight", 720));
|
ui->heightSpinBox->setValue(toml::find_or<int>(data, "GPU", "screenHeight", 720));
|
||||||
ui->vblankSpinBox->setValue(toml::find_or<int>(data, "GPU", "vblankDivider", 1));
|
ui->vblankSpinBox->setValue(toml::find_or<int>(data, "GPU", "vblankDivider", 1));
|
||||||
|
ui->ppFilterComboBox->setCurrentText(QString::fromStdString(toml::find_or<std::string>(data, "GPU", "ppFilter", "linear")));
|
||||||
ui->dumpShadersCheckBox->setChecked(toml::find_or<bool>(data, "GPU", "dumpShaders", false));
|
ui->dumpShadersCheckBox->setChecked(toml::find_or<bool>(data, "GPU", "dumpShaders", false));
|
||||||
ui->nullGpuCheckBox->setChecked(toml::find_or<bool>(data, "GPU", "nullGpu", false));
|
ui->nullGpuCheckBox->setChecked(toml::find_or<bool>(data, "GPU", "nullGpu", false));
|
||||||
ui->playBGMCheckBox->setChecked(toml::find_or<bool>(data, "General", "playBGM", false));
|
ui->playBGMCheckBox->setChecked(toml::find_or<bool>(data, "General", "playBGM", false));
|
||||||
@ -550,6 +554,7 @@ void SettingsDialog::UpdateSettings() {
|
|||||||
Config::setScreenWidth(ui->widthSpinBox->value());
|
Config::setScreenWidth(ui->widthSpinBox->value());
|
||||||
Config::setScreenHeight(ui->heightSpinBox->value());
|
Config::setScreenHeight(ui->heightSpinBox->value());
|
||||||
Config::setVblankDiv(ui->vblankSpinBox->value());
|
Config::setVblankDiv(ui->vblankSpinBox->value());
|
||||||
|
Config::setPostProcessingFilter(ui->ppFilterComboBox->currentText().toStdString());
|
||||||
Config::setDumpShaders(ui->dumpShadersCheckBox->isChecked());
|
Config::setDumpShaders(ui->dumpShadersCheckBox->isChecked());
|
||||||
Config::setNullGpu(ui->nullGpuCheckBox->isChecked());
|
Config::setNullGpu(ui->nullGpuCheckBox->isChecked());
|
||||||
Config::setSeparateUpdateEnabled(ui->separateUpdatesCheckBox->isChecked());
|
Config::setSeparateUpdateEnabled(ui->separateUpdatesCheckBox->isChecked());
|
||||||
|
@ -964,6 +964,18 @@
|
|||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="ppFilterGroupBox">
|
||||||
|
<property name="title">
|
||||||
|
<string>Post-Processing Filter</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="ppFilterComboBox"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -1239,8 +1251,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>946</width>
|
<width>510</width>
|
||||||
<height>586</height>
|
<height>269</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="debugTabVLayout" stretch="0,1">
|
<layout class="QVBoxLayout" name="debugTabVLayout" stretch="0,1">
|
||||||
|
Loading…
Reference in New Issue
Block a user