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 void Allocated<bindingType, HandleType>::clear()
432{
433 mapped_data = nullptr;
434 persistent = false;
435 allocation_create_info = {};
436}
437
438template <vkb::BindingType bindingType, typename HandleType>
439inline 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 }

Callers 1

BufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected