diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-04-19 16:33:01 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-04-19 16:33:01 +0000 |
| commit | 32d3dbd559acb8d4d7a4a8cfaaef1a05330606bb (patch) | |
| tree | 8fa03c9058ab27829361689808973e507e6f20a1 /Graphics/GraphicsEngineVulkan | |
| parent | Updated HLSL2GLSLConverter and ShaderMacroHelper (diff) | |
| download | DiligentCore-32d3dbd559acb8d4d7a4a8cfaaef1a05330606bb.tar.gz DiligentCore-32d3dbd559acb8d4d7a4a8cfaaef1a05330606bb.zip | |
Fixed few Android build problems
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp index f695b372..7663eb85 100644 --- a/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/EngineFactoryVk.cpp @@ -40,6 +40,10 @@ #include "VulkanUtilities/VulkanPhysicalDevice.hpp" #include "EngineFactoryBase.hpp" +#if PLATFORM_ANDROID +# include "FileSystem.hpp" +#endif + namespace Diligent { @@ -77,6 +81,10 @@ public: const NativeWindow& Window, ISwapChain** ppSwapChain) override final; +#if PLATFORM_ANDROID + virtual void InitAndroidFileSystem(void* Activity, const char* ActivityClassName) const override final; +#endif + private: std::function<void(RenderDeviceVkImpl*)> OnRenderDeviceCreated = nullptr; }; @@ -342,6 +350,12 @@ void EngineFactoryVkImpl::CreateSwapChainVk(IRenderDevice* pDevice, } } +#if PLATFORM_ANDROID +void EngineFactoryVkImpl::InitAndroidFileSystem(void* Activity, const char* ActivityClassName) const +{ + AndroidFileSystem::Init(Activity, ActivityClassName); +} +#endif #ifdef DOXYGEN /// Loads Direct3D12-based engine implementation and exports factory functions |
