Skip to content

Commit 18ec29a

Browse files
committed
ext::ImGui: Update to latest ICPUBuffer API
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
1 parent c8ac209 commit 18ec29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/ext/ImGui/ImGui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ smart_refctd_ptr<IGPUImageView> UI::createFontAtlasTexture(const SCreationParame
434434
// set its contents
435435
{
436436
const size_t image_size = getTexelOrBlockBytesize(NBL_FORMAT_FONT)*width*height;
437-
auto buffer = ICPUBuffer::create({.size=image_size,.data=pixels,.alignment=alignof(uint32_t),.memoryResource=core::getNullMemoryResource()},adopt_memory);
437+
auto buffer = ICPUBuffer::create({ { image_size }, pixels, core::getNullMemoryResource(), alignof(uint32_t) }, adopt_memory);
438438
auto regions = make_refctd_dynamic_array<smart_refctd_dynamic_array<ICPUImage::SBufferCopy>>(1ull);
439439
{
440440
auto region = regions->begin();

0 commit comments

Comments
 (0)