Skip to content

Add WinUI 3 composition hosting and shared CharacterLab sample - #47

Merged
atcarter714 merged 6 commits into
mainfrom
iteration/winui-composition-host
Nov 23, 2026
Merged

atcarter714 merged 6 commits into
mainfrom
iteration/winui-composition-host

Conversation

@atcarter714

@atcarter714 atcarter714 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Add an optional WinUI 3 viewport over the shared fenced frame renderer, allowing ordinary XAML controls to overlay Direct3D 12 content. CharacterLab.WinUI shares the existing scene, skinning, precompiled shaders and camera with the WinForms/native/WPF samples.

Core creates composition swap chains from direct command queues, queries owned interface versions explicitly, and reapplies inverse composition scale after resize. The adapter handles physical pixels, keyboard/pointer focus, window activation isolation, suspension, unload/reload, render failure, restart and drained panel detachment. The application provides XAML type metadata and keeps its dispatcher alive until post-close checks and GPU cleanup finish.

Windows App SDK WinUI 2.7.0 stays confined to the optional package. The unpackaged x64 sample bundles its Windows App SDK runtime. Isolated package qualification disables reusable build/compiler processes so temporary SDK task assemblies can be released before deleting the private package cache.

Validation: all six qualification jobs passed in run 45097490653. Windows Debug/Release build and execute all 16 samples against fresh .NET 10/11 packages outside the checkout; source WinUI lifecycle checks and Windows/Linux COM JIT/NativeAOT gates also pass. The release candidate manifest contains nine package IDs (18 package/symbol archives). No packages are published by this PR.

The adapter qualification target is Windows x64 JIT. Physical monitor transitions, hardware pacing and WinUI NativeAOT require separate qualification.

@atcarter714
atcarter714 merged commit b645fb2 into main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant