core::ivk::pipeline_cache class

the pipeline cache allows sharing of pipelines between various materials.

the pipeline cache allows sharing of pipelines between various materials. it is responsible for the creation and destruction of all pipeline objects, as well as providing easy facilities to get pipelines based on material descriptions.

member-functions

get
allows you to get a pipeline that satisfy the material requirements and is bound to the given framebuffer.
public
get
allows you to get a pipeline that satisfy the material requirements and is bound to the given swapchain.
public

Function documentation

core::resource::handle<core::ivk::pipeline> core::ivk::pipeline_cache::get(const psl::UID& uid, core::resource::handle<core::data::material_t> data, core::resource::handle<core::ivk::framebuffer_t> framebuffer)

Brief

allows you to get a pipeline that satisfy the material requirements and is bound to the given framebuffer.

Parameters
uid
data in the material containing the description of all bindings.
framebuffer in the framebuffer that will be bound to.
Returns a handle to a pipeline object.

core::resource::handle<core::ivk::pipeline> core::ivk::pipeline_cache::get(const psl::UID& uid, core::resource::handle<core::data::material_t> data, core::resource::handle<core::ivk::swapchain> swapchain)

Brief

allows you to get a pipeline that satisfy the material requirements and is bound to the given swapchain.

Parameters
uid
data in the material containing the description of all bindings.
swapchain in the swapchain that will be bound to.
Returns a handle to a pipeline object.