Direct3DRenderContext

data class Direct3DRenderContext(val directContext: DirectContext, val hwnd: Long, val adapter: Long, val device: Long, val commandQueue: Long, val swapChain: Long, val compositionDevice: Long, val compositionTarget: Long, val compositionVisual: Long) : RenderContext(source)

Direct3D render context for a Compose GLFW window.

Native handles are borrowed from the host window and remain valid only until that window is closed or recreated. Do not close or release them from user code.

Constructors

Link copied to clipboard
constructor(directContext: DirectContext, hwnd: Long, adapter: Long, device: Long, commandQueue: Long, swapChain: Long, compositionDevice: Long, compositionTarget: Long, compositionVisual: Long)

Properties

Link copied to clipboard

IDXGIAdapter1 pointer used to create the D3D device.

Link copied to clipboard

ID3D12CommandQueue pointer used by Skia and DXGI presentation.

Link copied to clipboard

IDCompositionDesktopDevice pointer owning the composition transaction.

Link copied to clipboard

IDCompositionTarget pointer bound to the GLFW HWND.

Link copied to clipboard

IDCompositionVisual pointer whose content is the DXGI swap chain.

Link copied to clipboard

ID3D12Device pointer used by Skia.

Link copied to clipboard
val directContext: DirectContext

Skia direct context used by Compose for this window.

Link copied to clipboard
val hwnd: Long

Win32 HWND hosting the DirectComposition target.

Link copied to clipboard

IDXGISwapChain3 pointer used as DirectComposition visual content.