mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
Move most backend functionality to VideoCommon
This commit is contained in:
parent
933f3ba008
commit
f039149198
182 changed files with 8334 additions and 15917 deletions
|
@ -114,7 +114,6 @@ struct VideoConfig final
|
|||
bool bEFBAccessEnable;
|
||||
bool bPerfQueriesEnable;
|
||||
bool bBBoxEnable;
|
||||
bool bBBoxPreferStencilImplementation; // OpenGL-only, to see how slow it is compared to SSBOs
|
||||
bool bForceProgressive;
|
||||
|
||||
bool bEFBEmulateFormatChanges;
|
||||
|
@ -186,6 +185,7 @@ struct VideoConfig final
|
|||
std::string AdapterName; // for OpenGL
|
||||
|
||||
u32 MaxTextureSize;
|
||||
bool bUsesLowerLeftOrigin;
|
||||
|
||||
bool bSupportsExclusiveFullscreen;
|
||||
bool bSupportsDualSourceBlend;
|
||||
|
@ -215,6 +215,7 @@ struct VideoConfig final
|
|||
bool bSupportsBPTCTextures;
|
||||
bool bSupportsFramebufferFetch; // Used as an alternative to dual-source blend on GLES
|
||||
bool bSupportsBackgroundCompiling;
|
||||
bool bSupportsLargePoints;
|
||||
} backend_info;
|
||||
|
||||
// Utility
|
||||
|
@ -223,12 +224,6 @@ struct VideoConfig final
|
|||
{
|
||||
return backend_info.bSupportsExclusiveFullscreen && !bBorderlessFullscreen;
|
||||
}
|
||||
bool BBoxUseFragmentShaderImplementation() const
|
||||
{
|
||||
if (backend_info.api_type == APIType::OpenGL && bBBoxPreferStencilImplementation)
|
||||
return false;
|
||||
return backend_info.bSupportsBBox && backend_info.bSupportsFragmentStoresAndAtomics;
|
||||
}
|
||||
bool UseGPUTextureDecoding() const
|
||||
{
|
||||
return backend_info.bSupportsGPUTextureDecoding && bEnableGPUTextureDecoding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue