feat(recompiler): add WGSL with native cache compatibility #9094
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9094"
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?
Imported from boykopovar/AnyPS5. Originally posted by SteelCrab on 2026-10-21T12:08:19Z.
What
Superseded by draft #16391, which refreshes this WGSL topic on current main. The results below are historical to this closed branch.
Add a WGSL backend for WebGPU and standalone
anyps5-wgslshader tools. WGSL requests have distinct cache keys; native requests preserve their existing key bytes, SPIR-V bytes and serialized shader artifacts. The generated production compiler source-version stamp still changes when compiler sources change.Add public compute fixtures, native/WGSL/native cache-reuse checks and a baseline snapshot harness. CI builds the PR base and change from the same fixture sources and compares all nine native output files byte for byte. Known WGSL limitations are recorded in
docs/dev/debt/shader.md.Extracted prerequisite of #6879. The dependency line records the requested landing order after the relinker and library portability PRs; this branch is based directly on main and its tests run independently. Native masked-select and other integration fixes are excluded.
Tested
Ubuntu 26.04.1 x86-64, GCC 15.2, Rust 1.98.0; main baseline
47fa6eecf8e7124c88d26ccc37056c13713f7143.wgsl_native_compatandshader_native_snapshot: 2/2 passed. Native baselineshader_native_snapshot: 1/1 passed.cargo build --release --locked --manifest-path tools/wgsl-check/Cargo.tomlpassed. Naga validates all three generated WGSL compute stages; wgpu creates 3/3 Vulkan pipelines on llvmpipe (LLVM 21.1.8, 256 bits).ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. No log reports a missing validation layer or aVUID-error; the change adds none.native-compatibility-and-wgslbuilds both native baselines, compares bytes, checks native cache reuse, validates WGSL with Naga and creates the three wgpu pipelines. It checks validation logs explicitly and fails on missing layers, skipped cases orVUID-errors. The fork workflow needs maintainer approval; remote CI is not claimed as passing.The relinker prerequisite #10017 and the library-portability prerequisite #11341 have merged. Follow #16391 for this topic.
Remote status: Conventions passed. This prerequisite remains closed while its dependencies land in the sequential staging plan. WGSL workflow ended before any jobs ran: approval was required and expired. The passing build and test counts above are local results.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:08:39Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed