core::gfx::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::gfx::pipeline> core::gfx::pipeline_cache::get(core::resource::handle<core::data::material> data, core::resource::handle<framebuffer> framebuffer)

Brief

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

Parameters
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::gfx::pipeline> core::gfx::pipeline_cache::get(core::resource::handle<core::data::material> data, core::resource::handle<swapchain> swapchain)

Brief

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

Parameters
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.