build: update for newest libutil api

This commit is contained in:
Danny Robson 2018-01-10 17:30:04 +11:00
parent e56b8573df
commit e0f107a599
2 changed files with 5 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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);
} }