mirror of
https://github.com/maxartz15/MoonWorksDearImGuiScaffold.git
synced 2024-11-22 07:25:37 +01:00
update MoonWorks
This commit is contained in:
parent
de2e6dd3b8
commit
6597e048ae
@ -1 +1 @@
|
|||||||
Subproject commit 9195e445b2473564563c917df611fcca4ea161d1
|
Subproject commit 69d2c9cc31450847830be3d8d945eb0a28147a27
|
@ -5,6 +5,7 @@ using ImGuiNET;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using MoonWorks.Math.Float;
|
using MoonWorks.Math.Float;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace MoonWorksDearImGuiScaffold;
|
namespace MoonWorksDearImGuiScaffold;
|
||||||
|
|
||||||
@ -162,9 +163,7 @@ class MoonWorksDearImGuiScaffoldGame : Game
|
|||||||
RenderCommandLists(commandBuffer, swapchainTexture, drawDataPtr, io);
|
RenderCommandLists(commandBuffer, swapchainTexture, drawDataPtr, io);
|
||||||
}
|
}
|
||||||
|
|
||||||
var fence = GraphicsDevice.SubmitAndAcquireFence(commandBuffer);
|
GraphicsDevice.Submit(commandBuffer);
|
||||||
GraphicsDevice.WaitForFences(fence);
|
|
||||||
GraphicsDevice.ReleaseFence(fence);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Destroy()
|
protected override void Destroy()
|
||||||
|
@ -32,7 +32,7 @@ class Program
|
|||||||
MoonWorksDearImGuiScaffoldGame game = new MoonWorksDearImGuiScaffoldGame(
|
MoonWorksDearImGuiScaffoldGame game = new MoonWorksDearImGuiScaffoldGame(
|
||||||
windowCreateInfo,
|
windowCreateInfo,
|
||||||
frameLimiterSettings,
|
frameLimiterSettings,
|
||||||
[Backend.D3D11, Backend.Vulkan],
|
[Backend.Vulkan, Backend.D3D11],
|
||||||
debugMode
|
debugMode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user