|
Blender V5.3
|
#include <vk_pipeline_pool.hh>
Public Member Functions | |
| VkPipeline | get_or_create (const PipelineInfo &pipeline_info, VkPipelineCache vk_pipeline_cache, VkPipeline vk_pipeline_base, StringRefNull name, bool &r_created) |
| void | discard (VKDiscardPool &discard_pool, VkPipelineLayout vk_pipeline_layout) |
| void | free_data (VkDevice vk_device, const volk::VolkDeviceTable &functions) |
| uint64_t | size () const |
Thread safe map to pipelines of a certain type (graphics or compute).
Definition at line 214 of file vk_pipeline_pool.hh.
|
inline |
Discard all pipelines associated with the given layout
Definition at line 284 of file vk_pipeline_pool.hh.
References blender::gpu::VKDiscardPool::discard_pipeline(), and lock.
|
inline |
Free all data.
Definition at line 300 of file vk_pipeline_pool.hh.
References lock.
|
inline |
Get an existing or create a new pipeline based on the provided PipelineInfo.
When vk_pipeline_base is a valid pipeline handle, the pipeline base will be used to speed up pipeline creation process.
| pipeline_info | Description of the pipeline to compile. |
| vk_pipeline_cache | Pipeline cache to use. |
| vk_pipeline_base | An already existing pipeline that can be used as a base when compiling the pipeline. |
| name | Name to give as a debug label when creating a pipeline. |
Definition at line 233 of file vk_pipeline_pool.hh.
References BLI_assert_unreachable, and lock.
|
inline |
Number of pipelines stored inside the instance.
Definition at line 311 of file vk_pipeline_pool.hh.