Closed ghost closed 8 years ago
You can use
var commanList = new CommandList(deviceContext);
How do you execute it after, D2D1 DeviceContext does not have ExecuteCommandList?
Please read msdn. https://msdn.microsoft.com/en-us/library/windows/desktop/hh404392(v=vs.85).aspx Example:
var commanList = new CommandList(deviceContext);
deviceContext.DrawImage(commandList);
or
var commanList = new CommandList(deviceContext);
deviceContext.Target = commandList
pD2D1DeviceContext->BeginDraw();
...
pD2D1DeviceContext->EndDraw();;
Thanks, I must've missed the correct way to use it in D2D in the docs.
Direct2D1.DeviceContext should according to MSDN contain CreateCommandList (https://msdn.microsoft.com/en-us/library/windows/desktop/hh404479(v=vs.85).aspx)
Is it possible to use command lists on D2D1 on DX11?