| 429 | |
| 430 | template <vkb::BindingType bindingType, typename HandleType> |
| 431 | inline typename Allocated<bindingType, HandleType>::BufferType Allocated<bindingType, HandleType>::create_buffer(BufferCreateInfoType const &create_info, DeviceSizeType alignment) |
| 432 | { |
| 433 | if constexpr (bindingType == vkb::BindingType::Cpp) |
| 434 | { |
| 435 | return create_buffer_impl(create_info, alignment); |
| 436 | } |
| 437 | else |
| 438 | { |
| 439 | return static_cast<VkBuffer>(create_buffer_impl(reinterpret_cast<vk::BufferCreateInfo const &>(create_info), alignment)); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | template <vkb::BindingType bindingType, typename HandleType> |
| 444 | inline vk::Buffer Allocated<bindingType, HandleType>::create_buffer_impl(vk::BufferCreateInfo const &create_info, DeviceSizeType alignment) |