Skip to content

Windows DX12: imgui assert: Backend does not support ImGuiBackendFlags_RendererHasTextures #586

@footballhead

Description

@footballhead

Running dx12_sample_04_cube produces an Imgui assert.

Building and run

cmake . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_POLICY_VERSION_MINIMUM=3.5
cmake --build build --target dx12_sample_04_cube
build\bin\dx12_sample_04_cube.exe

assert

Logging started
KNOB: extra-assets-path : ()
KNOB: config-json-path : ()
KNOB: deterministic : (false)
KNOB: enable-metrics : (false)
KNOB: frame-count : (0)
KNOB: gpu : (0)
KNOB: headless : (false)
KNOB: list-gpus : (false)
KNOB: metrics-filename : ([email protected])
KNOB: overwrite-metrics-file : (false)
KNOB: resolution : (0, 0)
KNOB: run-time-ms : (0)
KNOB: screenshot-frame-number : (-1)
KNOB: screenshot-path : (screenshot_frame_#.ppm)
KNOB: stats-frame-window : (-1)
KNOB: use-software-renderer : (false)
KNOB: shading-rate-mode : ()
CPU info for 13th Gen Intel(R) Core(TM) i7-13800H
   vendor             : GenuineIntel
   microarchitecture  : Unknown X86 Architecture
   L1 cache size      : 0
   L2 cache size      : 0
   L3 cache size      : 0
   L1 cache line size : 0
   L2 cache line size : 0
   L3 cache line size : 0
   SSE                : 1
   SSE2               : 1
   SSE3               : 1
   SSSE3              : 1
   SSE4_1             : 1
   SSE4_2             : 1
   SSE4A              : 1
   AVX                : 1
   AVX2               : 1
Creating application graphics device using Intel(R) Iris(R) Xe Graphics
   requested graphics queue count : 1
   requested compute  queue count : 0
   requested transfer queue count : 0
Created device: Intel(R) Iris(R) Xe Graphics
Creating application swapchain
   resolution  : 1280x720
   image count : 2
Swapchain created
   resolution  : 1280x720
   image count : 2
Loaded shader from "C:\\Users\\hitchens\\Desktop\\git\\bigwheels\\build\\bin\\..\\assets\\basic/shaders\\dxil\\VertexColors.vs.dxil"
Loaded shader from "C:\\Users\\hitchens\\Desktop\\git\\bigwheels\\build\\bin\\..\\assets\\basic/shaders\\dxil\\VertexColors.ps.dxil"
Setup() finished: 0.005297 seconds.
[00001] [imgui-error] (current settings: Assert=1, Log=1, Tooltip=1)
[00001] [imgui-error] In window 'NULL': Backend does not support ImGuiBackendFlags_RendererHasTextures, and font atlas is not built! Update backend OR make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8().
Assertion failed: (atlas->TexIsBuilt) && "Backend does not support ImGuiBackendFlags_RendererHasTextures, and font atlas is not built! Update backend OR make sure you called ImGui_ImplXXXX_NewFrame() function for renderer backend, which should call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8().", file C:\Users\hitchens\Desktop\git\bigwheels\third_party\imgui\imgui_draw.cpp, line 2751

NOTE That Imgui was recently updated

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions