// 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 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 alloc); void destroy(VkDevice dev, VkPhysicalDevice pdev, GrAllocator alloc); private: String m_dumpFilename; PtrSize m_dumpSize = 0; ANKI_USE_RESULT Error destroyInternal(VkDevice dev, VkPhysicalDevice pdev, GrAllocator alloc); }; /// @} } // end namespace anki