Class PipelineCache#
Defined in File PipelineCache.h
Inheritance Relationships#
Derived Type#
public TRAP::Graphics::API::VulkanPipelineCache
(Class VulkanPipelineCache)
Class Documentation#
-
class PipelineCache#
Subclassed by TRAP::Graphics::API::VulkanPipelineCache
Public Functions
-
virtual ~PipelineCache()#
Destructor.
-
consteval PipelineCache(const PipelineCache&) noexcept = delete#
Copy constructor.
-
consteval PipelineCache &operator=(const PipelineCache&) noexcept = delete#
Copy assignment operator.
-
constexpr PipelineCache(PipelineCache&&) noexcept = default#
Move constructor.
-
PipelineCache &operator=(PipelineCache&&) noexcept = default#
Move assignment operator.
-
virtual std::vector<u8> GetPipelineCacheData() const = 0#
Retrieve the cached pipeline data in bytes.
- Returns:
Pipeline cache data as bytes.
-
void Save(const std::filesystem::path &path) const#
Save a pipeline to disk.
- Parameters:
path – Path to save the pipeline to.
Public Static Functions
-
static TRAP::Ref<PipelineCache> Create(const RendererAPI::PipelineCacheDesc &desc)#
Create a new pipeline cache from the given description.
- Parameters:
desc – Pipeline cache description.
- Returns:
Created pipeline cache.
-
static TRAP::Ref<PipelineCache> Create(const RendererAPI::PipelineCacheLoadDesc &desc)#
Create a new pipeline cache from the given description.
- Parameters:
desc – Pipeline cache description.
- Returns:
Created pipeline cache.
Protected Functions
-
PipelineCache()#
Constructor.
-
virtual ~PipelineCache()#