| 12345678910111213141516171819202122232425262728293031323334353637 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Gr/Vulkan/Common.h>
- namespace anki {
- // Forward
- class ConfigSet;
- /// @addtogroup vulkan
- /// @{
- /// On disk pipeline cache.
- class PipelineCache
- {
- public:
- VkPipelineCache m_cacheHandle = VK_NULL_HANDLE;
- ANKI_USE_RESULT Error init(VkDevice dev, VkPhysicalDevice pdev, CString cacheDir, const ConfigSet& cfg,
- GrAllocator<U8> alloc);
- void destroy(VkDevice dev, VkPhysicalDevice pdev, GrAllocator<U8> alloc);
- private:
- String m_dumpFilename;
- PtrSize m_dumpSize = 0;
- ANKI_USE_RESULT Error destroyInternal(VkDevice dev, VkPhysicalDevice pdev, GrAllocator<U8> alloc);
- };
- /// @}
- } // end namespace anki
|