core::ivk::pipeline_key struct

the pipeline key creates a hash of the important elements of a vk::Pipeline

when you want to store, and lookup pipelines based on their properties, then pipeline_key is the way to go. the pipeline key allows you to calculate a hash based on the identifying properties that make it unique (for the GPU), and easily retrieve it. to see this being used, check core::ivk::pipeline_cache.

constructors, destructors, conversion operators

pipeline_key
constructor based on the data you wish to store.
public

variables

std::vector<std::pair<vk::DescriptorType, uint32_t>>
descriptors
the contained descriptors that describe this key.
constconstpublicpublic
vk::RenderPass
renderPass
the bound renderpass of this key.
constconstpublicpublic

Function documentation

core::ivk::pipeline_key::pipeline_key(const psl::UID& uid, core::resource::handle<core::data::material_t> data, vk::RenderPass pass)

Brief

constructor based on the data you wish to store.

Details