LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс VulkanPipelineCache

Manages a cache of Vulkan graphics pipelines to optimize resource reuse and reduce redundant pipeline creation. Подробнее...

#include <VulkanPipelineCache.h>

Открытые члены

 VulkanPipelineCache ()
 Constructs an empty Vulkan pipeline cache.
 
 VulkanPipelineCache (const VulkanPipelineCache &)=delete
 Deleted copy constructor to prevent copying.
 
 ~VulkanPipelineCache ()
 Destroys all cached pipelines.
 
VulkanPipelineCacheoperator= (const VulkanPipelineCache &)=delete
 Deleted assignment operator to prevent copying.
 
void clearCache ()
 Clears the pipeline cache, removing all stored pipelines.
 
VulkanGraphicsPipelinegetOrCreatePipeline (const std::string &fragPath, const std::string &vertPath, VkDevice device, VkRenderPass renderPass)
 Retrieves an existing Vulkan graphics pipeline or creates a new one if it does not exist.
 
void removePipeline (const std::string &fragPath, const std::string &vertPath)
 Removes a Vulkan graphics pipeline from the cache if it is no longer referenced.
 

Подробное описание

Manages a cache of Vulkan graphics pipelines to optimize resource reuse and reduce redundant pipeline creation.

Методы

◆ getOrCreatePipeline()

VulkanGraphicsPipeline * VulkanPipelineCache::getOrCreatePipeline ( const std::string & fragPath,
const std::string & vertPath,
VkDevice device,
VkRenderPass renderPass )

Retrieves an existing Vulkan graphics pipeline or creates a new one if it does not exist.

Аргументы
fragPathPath to the fragment shader file.
vertPathPath to the vertex shader file.
deviceThe Vulkan logical device.
renderPassThe Vulkan render pass.
Возвращает
Pointer to the Vulkan graphics pipeline.

◆ operator=()

VulkanPipelineCache & VulkanPipelineCache::operator= ( const VulkanPipelineCache & )
delete

Deleted assignment operator to prevent copying.

Аргументы
rhsThe right-hand side object to assign from.
Возвращает
Reference to this object.

◆ removePipeline()

void VulkanPipelineCache::removePipeline ( const std::string & fragPath,
const std::string & vertPath )

Removes a Vulkan graphics pipeline from the cache if it is no longer referenced.

Аргументы
fragPathPath to the fragment shader file.
vertPathPath to the vertex shader file.

Объявления и описания членов классов находятся в файлах: