ffx-kit (GPU-verified FidelityFX CAS replacements)
Raw Developer Origin & Technical Request
GitHub Issue
Nov 24, 2026
Title: GPU-verified FidelityFX CAS replacements (ffx-kit) — bit-exact golden model
Hi! With the project moving here, verified shader replacements are more valuable than ever.
We built ffx-kit: a small verification harness that may help with the FidelityFX side of the shader pipeline.
What it does:
- Compiles official AMD FidelityFX-CAS sources (MIT) with DXC to SPIR-V
- Runs them on a real GPU through Vulkan (wgpu-py)
- Verifies every output against a CPU golden model that mirrors AMD's exact arithmetic:
APrxLoRcpF1 / APrxMedRcpF1 / APrxLoSqrtF1 bit tricks, green-channel weight path,
D3D saturate(NaN)=0 semantics
Results (2026-11-24, RTX 4070 Ti, Vulkan, DXC 1.9.2609.5):
- 8/8 fp32 sharpen-only variants (CAS_BETTER_DIAGONALS x CAS_GO_SLOWER x CAS_SLOW): PASS
- 144 matrix tests + 3840x2160: worst max abs diff 4.77e-07 (a few fp32 ULPs)
- manifest.json with per-variant SHA-256 and per-test diffs
Why this matters now: a naive "mathematically correct" reference disagrees with AMD's
fast-math paths by up to ~8.5% of signal, so checking translated FidelityFX output against
exact math produces false failures. This kit reproduces the intended approximations.
Scope / honesty:
- fp32 sharpen-only today; fp16 packed (CasFilterH) and scaling next
- No game files, keys or console binaries — only official open sources
- Verified on one GPU so far; reproduction is 4 commands in the README
Repo: github.com/Cobrall/ffx-kit
Happy to adapt the harness to this continuation's ...
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from 4lwayz/portwatch-vi.
Frequently Asked Questions
Market intelligence mapped to ffx-kit (GPU-verified FidelityFX CAS replacements).
What problem does ffx-kit (GPU-verified FidelityFX CAS replacements) solve?
How is the developer community reacting to ffx-kit (GPU-verified FidelityFX CAS replacements)?
What are the foundational technologies related to ffx-kit (GPU-verified FidelityFX CAS replacements)?
Engagement Signals
Cross-Market Term Frequency
Counts stored text matches for foundational terms like GPU-verified FidelityFX CAS replacements and ffx-kit in analysed public discussions. These counts do not measure adoption.
Stored text matches, not adoption or market-share measurements.
- GPU-verified FidelityFX CAS replacements: 1 records
- ffx-kit: 1 records
- verification harness: 1 records
- FidelityFX-CAS sources (MIT): 1 records
- DXC to SPIR-V: 1 records
- real GPU through Vulkan (wgpu-py): 1 records
- CPU golden model: 1 records
- AMD's exact arithmetic: 1 records
- APrxLoRcpF1 / APrxMedRcpF1 / APrxLoSqrtF1 bit tricks: 1 records
- green-channel weight path: 1 records
- D3D saturate(NaN)=0 semantics: 1 records
- fp32 sharpen-only variants: 1 records
- CAS_BETTER_DIAGONALS x CAS_GO_SLOWER x CAS_SLOW: 1 records
- max abs diff 4.77e-07 (fp32 ULPs): 1 records
- manifest.json with per-variant SHA-256 and per-test diffs: 1 records
- naive 'mathematically correct' reference: 1 records
- AMD's fast-math paths: 1 records
- fp16 packed (CasFilterH) and scaling: 1 records
SaaS Metrics