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", "" },
|
||||
{ "Direct3D 11", "FFlagDebugGraphicsPreferD3D11" },
|
||||
{ "Direct3D 10", "FFlagDebugGraphicsPreferD3D11FL10" },
|
||||
{ "Vulkan", "FFlagDebugGraphicsPreferVulkan" },
|
||||
{ "OpenGL", "FFlagDebugGraphicsPreferOpenGL" }
|
||||
};
|
||||
@ -120,9 +121,14 @@ namespace Bloxstrap.Singletons
|
||||
if (GetValue("DFIntTaskSchedulerTargetFps") is null)
|
||||
SetValue("DFIntTaskSchedulerTargetFps", 9999);
|
||||
|
||||
// reshade / exclusive fullscreen requires direct3d 11 to work
|
||||
if (GetValue(RenderingModes["Direct3D 11"]) != "True" && App.FastFlags.GetValue("FFlagHandleAltEnterFullscreenManually") == "False")
|
||||
SetRenderingMode("Direct3D 11");
|
||||
// exclusive fullscreen requires direct3d 10/11 to work
|
||||
if (App.FastFlags.GetValue("FFlagHandleAltEnterFullscreenManually") == "False")
|
||||
{
|
||||
if (!(App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11") == "True" || App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11FL10") == "True"))
|
||||
{
|
||||
SetRenderingMode("Direct3D 11");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Save()
|
||||
|
@ -53,7 +53,11 @@ namespace Bloxstrap.ViewModels
|
||||
|
||||
if (value)
|
||||
{
|
||||
App.FastFlags.SetRenderingMode("Direct3D 11");
|
||||
if (!(App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11") == "True" || App.FastFlags.GetValue("FFlagDebugGraphicsPreferD3D11FL10") == "True"))
|
||||
{
|
||||
App.FastFlags.SetRenderingMode("Direct3D 11");
|
||||
}
|
||||
|
||||
OnPropertyChanged(nameof(SelectedRenderingMode));
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@
|
||||
<ui:CardControl.Header>
|
||||
<StackPanel>
|
||||
<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>
|
||||
</ui:CardControl.Header>
|
||||
<ui:ToggleSwitch IsChecked="{Binding ExclusiveFullscreenEnabled, Mode=TwoWay}" />
|
||||
|
Loading…
Reference in New Issue
Block a user