terrafx / terrafx.interop.windows

Interop bindings for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for "Composition swap chain" API (presentation*.h)

rickbrew opened this issue · comments

Looks like a new API in Windows 11 build 22000:

https://learn.microsoft.com/en-us/windows/win32/comp_swapchain/comp-swapchain-portal

This API is the initial public release of the composition swapchain API. It allows applications using Composition APIs (such as Windows.UI.Composition and DirectComposition) to host content that can be independently rendered and presented to. In many ways, this type of presented content is conceptually similar to a DXGI swapchain. Both offer the ability to render to a buffer, and then present that buffer to the screen. However, the composition swapchain API offers the ability for presents to target a specific time to appear (the PresentAt time), whereas DXGI doesn't, and the composition swapchain API offers more freedom than DXGI around the ordering of buffers available to be presented.

I think it's just a regular COM-based API.