update ClearScreen_MultiWindow

refresh2
cosmonaut 2024-02-23 11:08:15 -08:00
parent b50df03dd7
commit 329f3c68f4
1 changed files with 18 additions and 12 deletions

View File

@ -23,6 +23,8 @@ namespace MoonWorks.Test
CommandBuffer cmdbuf;
Texture? backbuffer;
if (MainWindow.Claimed)
{
cmdbuf = GraphicsDevice.AcquireCommandBuffer();
backbuffer = cmdbuf.AcquireSwapchainTexture(MainWindow);
if (backbuffer != null)
@ -31,7 +33,10 @@ namespace MoonWorks.Test
cmdbuf.EndRenderPass();
}
GraphicsDevice.Submit(cmdbuf);
}
if (secondaryWindow.Claimed)
{
cmdbuf = GraphicsDevice.AcquireCommandBuffer();
backbuffer = cmdbuf.AcquireSwapchainTexture(secondaryWindow);
if (backbuffer != null)
@ -41,6 +46,7 @@ namespace MoonWorks.Test
}
GraphicsDevice.Submit(cmdbuf);
}
}
public static void Main(string[] args)
{