diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-10-30 21:20:19 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-10-30 21:20:19 +0000 |
| commit | 521dfa36a944f11eb3e54782051202fdbc81fb56 (patch) | |
| tree | 641e8802397edbf93ec2c27a91b99fdfbe1c986b /Graphics/GraphicsEngine | |
| parent | A number of minor updates (diff) | |
| parent | Set default swap chain buffer count to 3 on Android and iOS (diff) | |
| download | DiligentCore-521dfa36a944f11eb3e54782051202fdbc81fb56.tar.gz DiligentCore-521dfa36a944f11eb3e54782051202fdbc81fb56.zip | |
Merge branch 'master'
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/GraphicsTypes.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 00d91725..76f8dcd6 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -1349,7 +1349,13 @@ struct SwapChainDesc bool IsPrimary DEFAULT_INITIALIZER(true); #if DILIGENT_CPP_INTERFACE - SwapChainDesc()noexcept{} + SwapChainDesc() noexcept + { +#if PLATFORM_ANDROID || PLATFORM_IOS + // Use 3 buffers by default on mobile platforms + BufferCount = 3; +#endif + } /// Constructor intializes the structure members with default values SwapChainDesc(Uint32 _Width, @@ -1368,7 +1374,8 @@ struct SwapChainDesc DefaultDepthValue {_DefaultDepthValue }, DefaultStencilValue {_DefaultStencilValue}, IsPrimary {_IsPrimary } - {} + { + } #endif }; typedef struct SwapChainDesc SwapChainDesc; |
