| 434 | // class TraditionalImage |
| 435 | |
| 436 | void 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 | |
| 449 | TraditionalImage::~TraditionalImage() |
| 450 | { |
no test coverage detected