27 lines
700 B
C++
27 lines
700 B
C++
#include "./pipeline_cache.hpp"
|
|
|
|
#include "./device.hpp"
|
|
|
|
using vk::pipeline_cache;
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
void
|
|
pipeline_cache::merge (const device &dev,
|
|
const pipeline_cache *first,
|
|
const pipeline_cache *last)
|
|
{
|
|
auto err = vkMergePipelineCache (dev.id (), id (), last - first, &first->id ());
|
|
error::try_code (err);
|
|
}
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
size_t
|
|
pipeline_cache::get (const device &dev, void *dst, size_t len)
|
|
{
|
|
auto err = vkGetPipelineCacheData (dev.id (), id (), dst, &len);
|
|
error::try_code (err);
|
|
return len;
|
|
}
|