[Help Wanted] Add MinGW-w64 GCC / Clang-CL Windows build check and Vulkan graphics swapchain prototype #6
Labels
No labels
accessibility
bug
cross-platform
documentation
duplicate
enhancement
gdk-shims
good first issue
graphics
hardware-report
help wanted
invalid
question
shaders
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/californiaAlmonds--OpenScarlett#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@californiaAlmonds on GitHub · 2026-11-21 17:37 UTC · original
Goal
OpenScarlett currently builds and tests cleanly in GitHub Actions with MSVC 2022 + Ninja (Release & Debug). Two high-value portability milestones for contributors:
clang-clorMinGW-w64 GCC 13+(great stepping stone toward Linux/Proton cross-compilation).src/gpu/vulkan_backend.cpp): Extend our zero-SDK dynamicvulkan-1.dllbackend from compute pipelines to a minimal graphics render pass + color target readback (triangle + textured quad) using our lifted RDNA2 → SPIR-V 1.3 VS/PS shaders.Feel free to tackle either part in its own small PR — open a Discussion if you want to coordinate!
@rpatty-dev on GitHub · 2026-11-21 18:09 UTC · original
Tested building \OpenScarlett\ locally on Windows 11 with MinGW-w64 GCC 16.2.0 + Ninja (\cmake -B build-mingw -G Ninja -DCMAKE_BUILD_TYPE=Release).
Here is what compiled cleanly vs. what blocked the MinGW-w64 leg:
dna2_lifter,
dna2_interpreter, etc.
because MinGW-w64's \d3d12.h\ uses the C-ABI hidden-out-pointer signature for COM struct-returning methods rather than MSVC's C++ \ hiscall/\x64\ struct return.
If you want a deeper dive into pure-Rust / MinGW-w64-friendly Windows x64 PE32+ & GDK shim tooling, I'm also documenting my own clean-room approach at https://github.com/rpatty-dev/PercyScarlett.
@californiaAlmonds on GitHub · 2026-11-21 18:46 UTC · original
Huge thanks for testing MinGW-w64 GCC 16.2.0 and pinpointing those exact
d3d12_xsblockers! Just pusheddf979feaddressing all of them:__declspec(uuid(...))behindOPENSCARLETT_COM_UUID+ added__CRT_UUID_DECLspecializations for all 5 custom COM interfaces ininclude/openscarlett/gpu/d3d12_xs_abi.h#ifdef WIDL_EXPLICIT_AGGREGATE_RETURNSoverrides (+usingdeclarations) forGetResourceAllocationInfo,GetCustomHeapProperties,GetAdapterLuid,GetResourceAllocationInfo1, andCommandQueueX::GetDescsrc/shims/d3d12_xs_mingw.deffor the standardD3D12*export aliases and exposedd3d12/dxgi/d3dcompiler/ole32/uuidto non-MSVC Win32 builds inCMakeLists.txtIf you get a chance to pull
mainand re-run your MinGW-w64 build, let us know if anything else pops up!