You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
smart_refctd_ptr<IGPUCommandPool> pool = device->createCommandPool(transfer->getFamilyIndex(), pool_flags_t::RESET_COMMAND_BUFFER_BIT | pool_flags_t::TRANSIENT_BIT);
348
+
if (!pool)
349
+
{
350
+
logger.log("Could not create command pool!", ILogger::ELL_ERROR);
351
+
return IQueue::RESULT::OTHER_ERROR;
352
+
}
353
+
354
+
if (!pool->createCommandBuffers(IGPUCommandPool::BUFFER_LEVEL::PRIMARY, 1u, &transientCmdBuf))
355
+
{
356
+
logger.log("Could not create transistent command buffer!", ILogger::ELL_ERROR);
357
+
return IQueue::RESULT::OTHER_ERROR;
358
+
}
359
+
}
360
+
340
361
// Load Fonts
341
362
// - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.
342
363
// - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple.
// We cannot use the `AutoSubmit` variant of the util because we need to add a pipeline barrier with a transition onto the command buffer after the upload.
466
488
// old layout is UNDEFINED because we don't want a content preserving transition, we can just put ourselves in transfer right away
467
-
if (!creationParams.utilities->updateImageViaStagingBuffer(sInfo,pixels,image->getCreationParameters().format,image.get(),transferLayout,regions.range))
489
+
if (!m_cachedCreationParams.utilities->updateImageViaStagingBuffer(sInfo,pixels,image->getCreationParameters().format,image.get(),transferLayout,regions.range))
468
490
{
469
-
creationParams.utilities->getLogger()->log("Could not upload font image contents", ILogger::ELL_ERROR);
491
+
logger.log("Could not upload font image contents", ILogger::ELL_ERROR);
smart_refctd_ptr<IGPUCommandPool> pool = creationParams.utilities->getLogicalDevice()->createCommandPool(creationParams.transfer->getFamilyIndex(), pool_flags_t::RESET_COMMAND_BUFFER_BIT|pool_flags_t::TRANSIENT_BIT);
853
-
if (!pool)
854
-
{
855
-
creationParams.utilities->getLogger()->log("Could not create command pool!", ILogger::ELL_ERROR);
856
-
assert(false);
857
-
}
858
-
859
-
if (!pool->createCommandBuffers(IGPUCommandPool::BUFFER_LEVEL::PRIMARY, 1u, &transistentCMD))
860
-
{
861
-
creationParams.utilities->getLogger()->log("Could not create transistent command buffer!", ILogger::ELL_ERROR);
0 commit comments