mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge pull request #218 from fxeP1/main
Implement Direct3D10 rendering mode.
This commit is contained in:
commit
51ff6680e3
@ -20,6 +20,7 @@ namespace Bloxstrap.Singletons
|
|||||||
{
|
{
|
||||||
{ "Automatic", "" },
|
{ "Automatic", "" },
|
||||||
{ "Direct3D 11", "FFlagDebugGraphicsPreferD3D11" },
|
{ "Direct3D 11", "FFlagDebugGraphicsPreferD3D11" },
|
||||||
|
{ "Direct3D 10", "FFlagDebugGraphicsPreferD3D11FL10" },
|
||||||
{ "Vulkan", "FFlagDebugGraphicsPreferVulkan" },
|
{ "Vulkan", "FFlagDebugGraphicsPreferVulkan" },
|
||||||
{ "OpenGL", "FFlagDebugGraphicsPreferOpenGL" }
|
{ "OpenGL", "FFlagDebugGraphicsPreferOpenGL" }
|
||||||
};
|
};
|
||||||
@ -120,10 +121,15 @@ namespace Bloxstrap.Singletons
|
|||||||
if (GetValue("DFIntTaskSchedulerTargetFps") is null)
|
if (GetValue("DFIntTaskSchedulerTargetFps") is null)
|
||||||
SetValue("DFIntTaskSchedulerTargetFps", 9999);
|
SetValue("DFIntTaskSchedulerTargetFps", 9999);
|
||||||
|
|
||||||
// reshade / exclusive fullscreen requires direct3d 11 to work
|
// exclusive fullscreen requires direct3d 10/11 to work
|
||||||
if (GetValue(RenderingModes["Direct3D 11"]) != "True" && App.FastFlags.GetValue("FFlagHandleAltEnterFullscreenManually") == "False")
|
if (App.FastFlags.GetValue("FFlagHandleAltEnterFullscreenManually") == "False")
|
||||||
|
{
|
||||||
|
if (!(App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11") == "True" || App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11FL10") == "True"))
|
||||||
|
{
|
||||||
SetRenderingMode("Direct3D 11");
|
SetRenderingMode("Direct3D 11");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override void Save()
|
public override void Save()
|
||||||
{
|
{
|
||||||
|
@ -52,8 +52,12 @@ namespace Bloxstrap.ViewModels
|
|||||||
App.FastFlags.SetValue("FFlagHandleAltEnterFullscreenManually", value ? "False" : null);
|
App.FastFlags.SetValue("FFlagHandleAltEnterFullscreenManually", value ? "False" : null);
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
|
{
|
||||||
|
if (!(App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11") == "True" || App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11FL10") == "True"))
|
||||||
{
|
{
|
||||||
App.FastFlags.SetRenderingMode("Direct3D 11");
|
App.FastFlags.SetRenderingMode("Direct3D 11");
|
||||||
|
}
|
||||||
|
|
||||||
OnPropertyChanged(nameof(SelectedRenderingMode));
|
OnPropertyChanged(nameof(SelectedRenderingMode));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<ui:CardControl.Header>
|
<ui:CardControl.Header>
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontSize="14" Text="Enable exclusive fullscreen" />
|
<TextBlock FontSize="14" Text="Enable exclusive fullscreen" />
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Enables using Alt + Enter to enter exclusive fullscreen. Only works with Direct3D 11." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Text="Enables using Alt + Enter to enter exclusive fullscreen. Only works with Direct3D." Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardControl.Header>
|
</ui:CardControl.Header>
|
||||||
<ui:ToggleSwitch IsChecked="{Binding ExclusiveFullscreenEnabled, Mode=TwoWay}" />
|
<ui:ToggleSwitch IsChecked="{Binding ExclusiveFullscreenEnabled, Mode=TwoWay}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user