MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / Init

Method Init

src/SparseBindingTest.cpp:436–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434// class TraditionalImage
435
436void TraditionalImage::Init(RandomNumberGenerator& rand)
437{
438 FillImageCreateInfo(rand);
439
440 VmaAllocationCreateInfo allocCreateInfo = {};
441 allocCreateInfo.usage = VMA_MEMORY_USAGE_AUTO;
442 // Default BEST_FIT is clearly better.
443 //allocCreateInfo.flags |= VMA_ALLOCATION_CREATE_STRATEGY_WORST_FIT_BIT;
444
445 ERR_GUARD_VULKAN( vmaCreateImage(g_hAllocator, &m_CreateInfo, &allocCreateInfo,
446 &m_Image, &m_Allocation, nullptr) );
447}
448
449TraditionalImage::~TraditionalImage()
450{

Callers 1

TestSparseBindingFunction · 0.45

Calls 6

vmaCreateImageFunction · 0.85
vmaAllocateMemoryPagesFunction · 0.85
resizeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected