Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Using with DirectX? #9

Copy link
Copy link

Description

@jjb-pro
Issue body actions

Hello,
thank you very much for the wrapper.

I have a problem when I want to use ImGUI with DirectX 11 (wrapper is Silk.NET), because the ImGUI window does not appear.

I use this code after initialising device and deviceContext:

ImGui.CreateContext(null);
ImGui.Initialise();
ImGui.ImGuiImplDX11Init(new(device), new(deviceContext));
ImGui.StyleColorsDark(null);

And I use this code every frame vor swapchain.Present(1, 0):

ImGui.ImGuiImplDX11NewFrame();
ImGui.NewFrame();
var open = true;
ImGui.Begin("Test", ref open, 0);
ImGui.LabelText("Hello, World!", "Test");
ImGui.End();
ImGui.Render();
ImGui.ImGuiImplDX11RenderDrawData(ImGui.GetDrawData());

Have I forgotten something, or what is the reason that the window is not displayed?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.