| 429 | |
| 430 | template <vkb::BindingType bindingType, typename HandleType> |
| 431 | inline void Allocated<bindingType, HandleType>::clear() |
| 432 | { |
| 433 | mapped_data = nullptr; |
| 434 | persistent = false; |
| 435 | allocation_create_info = {}; |
| 436 | } |
| 437 | |
| 438 | template <vkb::BindingType bindingType, typename HandleType> |
| 439 | inline typename Allocated<bindingType, HandleType>::BufferType Allocated<bindingType, HandleType>::create_buffer(BufferCreateInfoType const &create_info, DeviceSizeType alignment) |
| 440 | { |
| 441 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 442 | { |
| 443 | return create_buffer_impl(create_info, alignment); |
| 444 | } |