MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / create_buffer

Method create_buffer

framework/core/allocated.h:431–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429
430template <vkb::BindingType bindingType, typename HandleType>
431inline 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
443template <vkb::BindingType bindingType, typename HandleType>
444inline vk::Buffer Allocated<bindingType, HandleType>::create_buffer_impl(vk::BufferCreateInfo const &create_info, DeviceSizeType alignment)

Callers 1

BufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected