Repository navigation
Precompile shaders and share rendering between WinForms and native Win32 - #42
Merged
Merged
Conversation
…untime independence
atcarter714
marked this pull request as ready for review
November 22, 2026 03:50
This was referenced Nov 22, 2026
atcarter714
added a commit
that referenced
this pull request
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The old shader task could report success without compiling, and desktop frame management was tied to WinForms. Framework now builds and embeds its skinning shaders and shares frame submission/presentation between WinForms and a native Win32 host.
DXSharp.Tools.Buildspackage.FrameRendererand implement a native HWND host with DPI, resize, input, message pumping, callback lifetime management and orderly GPU drain. Stop WinForms ticks before teardown; cover queued close dispatch.CharacterLab.Native, sharing the existing scene/camera source and precompiled shaders, without Windows Forms or a runtime DXC dependency.Validation: all six qualification jobs passed on head
f0105e49671deafb2ed49c558eefca05a2f3b31a. The prospective merge tree is7968769916b490a26147c94cde0be49e41130d4c. Windows Debug/Release and Windows/Linux .NET 10/11 JIT/NativeAOT pass. All 14 samples build from isolated packages on both runtimes; both CharacterLab hosts present nine package frames. Native resize/close/exception teardown and precompiled shader pipeline checks pass. Shader package tests cover two entry points, paths with spaces, unchanged builds, define/transitive-include changes, diagnostics, deleted includes, PDBs/manifests and clean. Windows graphics evidence uses WARP; no new hardware performance claim.This remains Preview 4 development; no package publication. WPF/WinUI adapters, richer compiler services and the remaining native API families are continuation work.