sokol: support D3D11 sharedlive readback#27673
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 660cf7fdaf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
This PR completes the D3D11 screenshot/readback path for Windows
sharedlivebuilds.It adds the missing host/DLL glue needed by Sokol app state in live shared libraries, so
sapp.screenshot_window()can compile and link correctly with-sharedlive -d sokol_d3d11.It also fixes the Windows GCC/Clang generated-C language reset so MinGW sharedlive import archives are not parsed as C input.
D3D11 remains opt-in for now through
-d sokol_d3d11; OpenGL remains the default Windows path until the D3D11 path has had more real user testing.Details
sapp_get_environment()andsapp_get_swapchain()across the sharedlive boundary.sokol_*defines into live shared rebuilds.-x noneafter generated C input for Windows GCC/Clang command lines.Validation
./v fmt -verify ...git diff --checkVJOBS=1 ./v test vlib/v/live vlib/sokol/gfxVJOBS=1 ./v test vlib/v/builder