build: update for newest libutil api
This commit is contained in:
parent
e56b8573df
commit
e0f107a599
@ -39,7 +39,7 @@ cruft::vk::map_t::destroy (device &_device, device_memory &_memory)
|
|||||||
|
|
||||||
vkUnmapMemory (_device.native (), _memory.native ());
|
vkUnmapMemory (_device.native (), _memory.native ());
|
||||||
|
|
||||||
*this = {nullptr, nullptr};
|
*this = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
#include "./device.hpp"
|
#include "./device.hpp"
|
||||||
|
|
||||||
|
#include <cruft/util/cast.hpp>
|
||||||
|
|
||||||
using cruft::vk::pipeline_cache;
|
using cruft::vk::pipeline_cache;
|
||||||
|
|
||||||
|
|
||||||
@ -28,7 +30,8 @@ pipeline_cache::merge (const device &dev,
|
|||||||
const pipeline_cache *first,
|
const pipeline_cache *first,
|
||||||
const pipeline_cache *last)
|
const pipeline_cache *last)
|
||||||
{
|
{
|
||||||
auto err = vkMergePipelineCaches (dev.native (), native (), last - first, &first->native ());
|
CHECK_GE (last, first);
|
||||||
|
auto err = vkMergePipelineCaches (dev.native (), native (), trunc_cast<uint32_t> (last - first), &first->native ());
|
||||||
error::try_code (err);
|
error::try_code (err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user