Skip to content
HyperExtendedRealityPublic

About

Clean-room Rust compatibility layer for unpacked x86-64 console software on Windows using No-API Vulkan 1.3+, direct RDNA2→SPIR-V 1.6 & Slang.

Topics

Resources

Security policy

Stars

46 stars

Watchers

3 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

Strata – No-API Vulkan 1.3+ and Slang console compatibility layer: native x86-64, direct RDNA2 to SPIR-V 1.6, 64-bit BDA, 3-Tier Hybrid UMA

License: GPL-3.0-or-later Windows 10 / 11 x64 NVIDIA · AMD · Intel Arc Vulkan 1.3+ No-API Slang + SPIR-V 1.6 Rust 2024

Legal & Privacy · Status Tracker · Highlights · How It Works · Workspace · What Works · Quick Start · CLI · Tests

Strata — No-API Vulkan & Slang Console Compatibility Layer

Strata is an experimental, clean-room, open-source compatibility layer written in Rust for running unpacked x86-64 console software natively on Windows PCs across NVIDIA, AMD, and Intel Arc GPUs—in the spirit of Wine and Proton—without CPU emulation.

Instead of rebuilding legacy Direct3D 12 abstractions on top of console hardware primitives, Strata takes a vendor-agnostic "No-API" Vulkan 1.3+ (ash) approach paired with a pure-Rust Direct RDNA2 → SPIR-V 1.6 shader compiler, subgroup-size-aware Wave64 support (SIMD8 / SIMD16 / Wave32 / Wave64), and build-time Slang runtime shaders.


Legal & Clean-Room Notice

Important

Strata is an independent, general-purpose software compatibility research project.

  • No Target Game: Strata is not tailored to, affiliated with, or endorsed by any specific game, publisher, or console manufacturer. It is a general-purpose runtime and shader-translation architecture.
  • No Game Files or Copyrighted Data: This repository contains source code only. It does not distribute, link to, or provide any game executables, assets, archives, firmware, or copyrighted media.
  • No Proprietary SDKs or Keys: This repository contains zero proprietary console SDK headers, binaries, import libraries, or encryption keys. All OS/graphics interfaces are independently authored clean-room implementations based on public specifications (AMD RDNA2 ISA, Khronos Vulkan 1.3+ & SPIR-V 1.6, Slang, and Microsoft Win32/PE32+ documentation).
  • Third-Party Code: A few files come from other GPL-3.0-or-later and permissively licensed projects (RDNA2 instruction and GDK function tables, FFmpeg's WMA Pro XMA path, bcpack-rs, libopus); each is listed under License & Provenance with its license.
  • No DRM Circumvention: Strata operates strictly on user-supplied, already-unpacked binaries that the user legally owns. It does not download, decrypt, unpack, or bypass DRM or package encryption (XVC / MSIXVC / etc.).
  • Offline & Privacy-First by Design: Use --offline or STRATA_NETWORK=0 to route supported title networking imports through offline handlers. This is not process-wide network isolation; host DLLs and unsupported paths may still access the network. Strata contains zero network telemetry or phone-home code—all performance counters, HUD overlays, stall histograms, and crash logs are strictly local, opt-in debugging tools that automatically redact local usernames/paths (scrub_sensitive_paths).

Highlights

No-API Vulkan 1.3+ (Raw ash)

No wgpu/vulkano wrappers, no VkRenderPass, no VkFramebuffer, and no vertex input layouts. Every shader shares one global pipeline layout (128 B push constants for User SGPRs + one image descriptor set sized to device limits, up to 32 slots per image kind) with VK_KHR_dynamic_rendering.
Real 64-bit GPU Pointers (BDA)

Uses VK_KHR_buffer_device_address (PhysicalStorageBuffer64) so raw memory accesses, constant tables, and BVH node fetches compile to direct pointer loads—eliminating 4 GiB raw-buffer limits and multi-window switch overhead.
3-Tier Hybrid Unified Memory

Combines Tier 1 zero-copy CPU↔GPU memory (VirtualAlloc → VK_EXT_external_memory_host), Tier 2 DEVICE_LOCAL GDDR6 mirrors, and Tier 3 64 KiB sparse tiled image aliasing (vkQueueBindSparse).
Direct RDNA2 → SPIR-V 1.6 (Pure Rust)

Zero runtime HLSL text generation, zero DXC compile stalls, and zero dxil.dll signing. Includes SSA optimization (bitcast cancellation, CSE, DCE, 128-bit BDA load coalescing), structured CFG (OpSelectionMerge/OpPhi), and atomic disk caching.
Multi-Vendor Wave64 Support (NVIDIA · AMD · Intel Arc)

Backward whole-live mask liveness keeps lane-local masks in registers while subgroup-size-aware ballots (OpGroupNonUniformBallot, OpAtomicOr, subgroupSizeControl) handle Intel Arc SIMD8/16, NVIDIA & AMD RDNA Wave32, and AMD native Wave64 seamlessly.
Build-Time Slang Runtime Shaders

Internal GPU compute and presentation passes (64 KiB & 64 B dirty-page hashing, multi-BPP/XOR texture detiling, BCPack unpacking, MSAA resolve, batched indirect-draw clamping, scatter uploads, RectList expansion, ambient/NaN clamp, BVH oracle, GPU HUD overlay, fullscreen present) are written in Slang using Ptr<T> and generics, compiled offline in build.rs.

Translation Progress & Status Tracker

Strata Translation Progress Map: 1,465 RDNA2 ISA opcodes and 396 GDK functions

  • CPU instructions: 100%. Native x86-64 execution on Windows (zero CPU emulation), plus live VEH handling for Zen 2 instructions (clwb, clzero, rdpru, rdpid, monitorx/mwaitx) and runtime SSE2 binary patching for AMD SSE4a (extrq, insertq, movntsd, movntss).
  • GPU instructions (RDNA2 → SPIR-V 1.6): 100.0% (1,465 / 1,465 canonical encodings). All 20 encoding families are at 100% (0 decode failures); every emitted SPIR-V 1.6 module passes spirv-val --target-env vulkan1.3.
  • GDK runtime (xgameruntime): 100.0% (396 / 396 functions). 287 native Rust handlers (XTaskQueue, XAsync, XGameSave, XUser, XPackage, XNetworking, XAccessibility) + 109 cleanly offline-refused Store/broadcast APIs (0 remaining/stub); zero outbound network telemetry.
  • Build-time Slang runtime shaders: 100% (29 / 29 modules). Includes mesh_indirect_task (VK_EXT_mesh_shader amplification shader) and hdr_to_sdr; all 29 are validated by spirv-val during cargo build.
  • Verified test suite & code hygiene: cargo test --workspace -- --skip translated_opcodes_validate passes 841+ workspace tests (0 failed; 0 TODO/FIXME/unimplemented! macros in crates/; runtime Slang shaders: 29/29 spirv-val-validated) alongside python scripts/check_switches.py --check (303 documented STRATA_* switches in docs/switches.md).

Strata Subsystem Status Tracker

Regenerate both charts and docs/STATUS.md with cargo xtask status. Linux CI runs workspace tests and an offscreen Vulkan smoke run on Mesa lavapipe; Windows GPU fixtures exercise NaN/Inf color exports, typed stores, null atomics, and multi-adapter Vulkan selection (STRATA_GPU_ADAPTER supports index, vendor:device hex, or name substring with automatic fallback).


How It Works

  User-supplied unpacked x86-64 PE32+ executable
                       │
                       ▼
  ┌─────────────────────────────────────────────────────────────────────┐
  │  strata-hle (PE32+ Mapper, Relocations, IAT, Static TLS, VEH)     │
  │  - Native x86-64 CPU execution (no CPU emulation)                   │
  │  - Zen 2 instruction VEH (clwb, clzero, rdpru, monitorx, rdpid)     │
  │  - Clean-room thunks (xmem, d3d12_xs, xg_xs, DStorage, offline GDK) │
  └─────────────────────────┬───────────────────────────────────────────┘
                            │ D3D12.X COM vtables (ThinCommandList)
                            ▼
  ┌─────────────────────────────────────────────────────────────────────┐
  │  strata-gpu (No-API Vulkan 1.3+ via raw `ash`)                    │
  │  - 3-Tier UMA: ExternalMemoryHost + GDDR6 Mirrors + 64 KiB Sparse   │
  │  - Fence-gated Bindless Slot Manager + Batched Indirect Clamping    │
  │  - VK_KHR_dynamic_rendering + Win32 VK_KHR_swapchain Presenter      │
  └─────────────────────────┬─────────────────────────┬─────────────────┘
                            │                         │
                            ▼                         ▼
  ┌──────────────────────────────────────┐  ┌───────────────────────────┐
  │  strata-shader (Pure Rust)         │  │  strata-runtime-shaders │
  │  XBCH (zlib) -> FSSM -> RDNA2 Decode │  │  Build-time Slang -> SPV  │
  │  -> SSA -> Opt (128b Coalesce)       │  │  - dirty_hash.slang       │
  │  -> Wave64-on-32 -> Direct SPIR-V 1.6│  │  - detile.slang           │
  │  -> Atomic Disk Cache                │  │  - clamp_indirect.slang   │
  └──────────────────────────────────────┘  │  - bvh_oracle.slang       │
                                            │  - present_blit.slang     │
                                            └───────────────────────────┘

Workspace Layout

Crate Purpose
crates/strata-shader Pure-Rust RDNA2 decoder (1,465 / 1,465 canonical encodings across 20 families in opcodes.rs), SSA IR, optimizer (NonUniformEXT sampler waterfall rewrite in sampler.rs, bitcast cancellation, CSE, DCE, 128-bit BDA load coalescing, static LDS alias/hazard analysis, Wave64→Wave32 folding, STRATA_EARLY_DEPTH), loose-pieces pipeline compiler, Wave64 liveness & subgroup permutes (wave_ops.rs), DXBC/XBCH (zlib)/FSSM container parser, expanded multi-stage DXIL/DXBC lowering (dx_compute), CPU BVH reference + RADV BVH64 / residency guard / LDS bounds (bvh.rs), BMA traversal shortcut instrumentation (bma.rs), SPV_KHR_ray_query loop detector & proof-gated lifter (rayquery.rs), RectList topology emulation incl. a geometry-shader emitter (rect.rs), static stage register semantics (static_stage.rs), atomic SPIR-V disk cache, versioned shader store, and direct SPIR-V 1.6 (PhysicalStorageBuffer64) emitter.
crates/strata-formats Console asset format decoders: an optional title-specific SGD5 archive scanner (off-by-default sgd5 feature; shader containers are found in any file without it), BCPack (MDU rANS BC1–BC7 via vendored bcpack-rs with AVX2 acceleration), XMA1/XMA2 audio frame decoder (FFmpeg WMA Pro XMA path in wmapro.rs), pure-Rust RFC 6716 Opus decoder (opus_native / opus-pure, mono and stereo SILK, CELT, and hybrid), and console texture format/swizzle tables (incl. RDNA2 _X pipe_bank_xor & Layout::copy_table).
crates/strata-runtime-shaders Emulator-authored internal shaders written in Slang (Ptr<T>, generics, wave intrinsics) compiled offline via slangc in build.rs and embedded as 29 spirv-val-validated SPIR-V 1.6 byte slices (detile, bcpack_decode, msaa_resolve, chunk_dirty_hash, dirty_hash, mirror_diff, scatter_upload, rect_expand, ambient_clamp, overlay_hud, clamp_indirect, mesh_indirect_task amplification shader, hdr_to_sdr, tex_convert, mip_gen, bvh_oracle, ray_probe, bma_mapping, upscale_easu, upscale_rcas, frame_interpolate, compose_*, present_blit_*).
crates/strata-gpu Raw ash No-API Vulkan 1.3+ engine: capability probe, single global bindless + push-constant layout, deferred descriptor overwrites & Synchronization2 BarrierCoalescer, two-queue async compute planner & multi-queue TimelineScheduler (Graphics / Async Compute / TransferCopy), GPU compute BCPack decoder & texture detiler, mimalloc / STRATA_ALLOC host allocator (allocator.rs), TDR breadcrumb markers & Aftermath hooks (tdr.rs), native RT VK_KHR_acceleration_structure AccelStructManager (BVH4/FBT/compaction/rt_diff, 64 MiB slabs, 64K BLAS-VA hash table), bma temporal BVH shortcut table, Slang pass dispatch wrappers (passes.rs), Streamline DLSS SR+FG & FSR 4/3.1 FG plus spatial fallback (display.rs), VRAM ledger, commit-charge valve, 4 GB Polaris margin, single-copy BAR windows, SoftPageTable, 3-tier UmaManager, dirty_log, memory_stack, 64 KiB SparseTilePool & live sparse_alias, fence-gated BindlessManager, ThinCommandList + ThinTranslationPool, AsyncPsoCompiler + HeapTextureWorker, OOM residency pressure tiers, hot A/B switches, F1/F3 stats overlay, perf per-frame PresentX counters, SCAP live-parity & visual pixel-diff replay/bisect/trace, FramePacingClock, VRR/tearing SwapchainPresenter, and live BDA ComputeRunner.
crates/strata-hle Zero-dependency PE32+ parser/mapper (sections, DIR64 relocations, IAT, exports, static TLS), Zen 2 + PAGE_GUARD VEH handler (incl. AMD SSE4a emulation/SSE2 patching, sse4a.rs), STRATA_STACKS all-thread stack dumper & minidump capture, verified cross-platform code patcher (VirtualProtect/mprotect) & title hooks, Lua modding host, PhysicalPagePool scatter mapper, expanded VFS drive rewriter & copy-on-write overlay, LoadLibrary/GetProcAddress hooks, DStorage, xgameruntime (396 / 396 GDK functions: 287 native handlers + 109 offline-refused; offline ws2_32, winhttp, rpcrt4, mfplat), d3d12_rt & XboxBvhBuilder.dll HLE, bounded background pipeline_warm, console CPU layout mapped onto host performance cores (cpu_topology.rs), DS4 / DualSense / Stadia / Generic / MenuPad HID + keyboard key-cap prompts (hid_pad.rs), xg_xs swizzle layout computer, GameInput, XAudio2 / AcpHal (48 kHz frame clock, overlap-add FFT DSP, PCM/XMA2/Opus), console_list inline command-buffer drain (D3D12.X records + 40 GFX10 PM4 packets), and d3d12_xs COM vtables with D3D12.X conformance.
crates/strata-cli Command-line tool for GPU capability probing, smoke verification, self-tests, live GPU & UMA hardware verification, PE32+ import/mapping diagnostics, run frame-time/CSV metrics + BM-v1 benchmark report JSON (run_metrics.rs), 7-scene benchmark harness, sampling stack profiler, shader translation/baseline checking/warming, and SCAP live-parity & visual pixel-diff frame replay/diff/bisect/trace.

What Works Today (Experimental Prototype)

Strata is an early-stage research prototype. Rows marked ✅ have runtime wiring and verification through synthetic tests, spirv-val --target-env vulkan1.3, or Vulkan 1.3 hardware tests. Rows marked 🚧 have partial implementations. Rows marked 📋 track open work in the compatibility-layer audit.

Shader Compiler & Slang Runtime Shaders
Component Status Verified By / Current Scope
RDNA2 decoder (SOPP/SOPC/SOP1/SOPK/SOP2, VOP1/VOPC/VOP2/VOP3, SMEM, FLAT/GLOBAL/SCRATCH, DS, MUBUF/MTBUF, MIMG, EXP) ✅ 1,465-instruction table across 20 encoding variants (opcodes.rs, generated by scripts/gen_isa_table.py) + IR decoding for compute/ALU/memory/scratch/ray-tracing (incl. s_setpc_b64/s_swappc_b64). 1,465 / 1,465 (100.0%) canonical encodings translate to SPIR-V (20/20 families at 100%, 0 decode failures) and all emitted modules pass spirv-val (strata-cli isa-coverage, test isa_coverage)
Direct RDNA2 → SSA → SPIR-V 1.6 (BDA, LDS incl. ds_add_u32 atomics, VOP3, nearest-first sorted BVH64 Box32 + Box16/Triangle/Instance reference, opt-in BMA traversal shortcuts via STRATA_BVH_BMA, RectList expansion, SCRATCH spill frames), stores predicated on EXEC ✅ spirv-val + live GPU execution on synthetic RDNA2 kernels; SpillFrame (spill.rs) wired to Function scratch arrays + Wave64 permutes (wave_ops.rs → OpGroupNonUniformBroadcastFirst/Shuffle/ShuffleXor)
Typed buffers (tbuffer_*), NaN/Inf export & store guard, and null-view atomic guard ✅ spirv-val + live GPU results (RGBA8_UNORM, RG16_SNORM, packed 10/11-bit floats, RGB9E5, atomic sub-dword stores). Float typed stores, image_store, and MRT color exports map both NaN and Inf to 0.0; non-LDS OpAtomic* guards addr == 0 to return 0
RGB9E5 3D sampling and storage writeback ✅ Vulkan point/trilinear sample fixtures. RGBA16F fallback converts and repacks RGB9E5 while preserving guest row padding.
Image & atomic instructions (image_sample/_l/_b/_lz/_c*, image_gather4*, image_get_resinfo, image_load(_mip), image_store, buffer_atomic_*, global_atomic_*, s_buffer_load_dword*, VOP3P packed FP16/dot, v_permlane16/ds_bpermute) → set-0 image arrays and BDA atomics ✅ spirv-val + live GPU: all MIMG dims (1D/2D/3D/Cube/Array/MSAA), depth compare (OpImageSampleDref*), gather (OpImageGather), resinfo (OpImageQuerySizeLod), cross-lane shuffles (OpGroupNonUniformShuffle), and 64-bit BDA atomics
Vertex / pixel / geometry / NGG mesh stages (EXP, v_interp_*, SPI_PS_INPUT_ENA, GS s_sendmsg, MeshEXT, implicit-LOD sampling, RequireFullQuadsKHR) ✅ spirv-val + live GPU draws through the D3D12.X queue (GFX10 legacy VS layout + GS + MeshEXT SPIR-V emission validated by spirv-val)
Structured CFG (OpSelectionMerge/OpPhi), structured loops (OpLoopMerge), and OpSwitch state-machine structurizer ✅ spirv-val + live GPU results for uniform, while, nested, divergent EXEC loops, mid-body breaks, and irreducible/multi-back-edge CFGs
Descriptor tracing, translation coverage tool (strata-cli translate), DXBC/XDAT/XBCH/FSSM parser, and atomic content-addressed SPIR-V disk cache ✅ Unit tests on raw and embedded containers; regression gating via --write-baseline / --check-baseline
RDNA2-translated Wave64 ballot (wave.rs two-wave OpGroupNonUniformBallot + Workgroup atomic merge) ✅ spirv-val + live GPU test across hardware subgroup sizes (0x5555555555555555)
Build-time Slang shaders (29 compiled SPIR-V 1.6 modules: dirty_hash, chunk_dirty_hash, mirror_diff, detile, bcpack_decode, msaa_resolve, scatter_upload, rect_expand, ambient_clamp, overlay_hud, clamp_indirect, mesh_indirect_task amplification shader, hdr_to_sdr, tex_convert, mip_gen, bvh_oracle, ray_probe, bma_mapping, upscale_easu, upscale_rcas, frame_interpolate, compose_vs/fs, present_blit_vs/fs, etc.) ✅ Compiled by slangc in build.rs + spirv-val --target-env vulkan1.3 + live GPU execution
PS EarlyFragmentTests (FSSM DB_SHADER_CONTROL bit 12), loop-guard exit tail (guard_tail), phi-walk halves_only, MED3_CLAMP/MINMAX_NONZERO, AMD RDNA4 getDimensions broadcast-first, barycentric GS fallback SPIR-V, and multi-block CFG CpuShaderOracle ✅ Live-wired across container.rs, structurizer.rs, ssa.rs, ssa_alu.rs, opt.rs, spirv.rs, geometry.rs, interp.rs, and d3d12x.rs/d3d12_abi.rs
Wave32 water/transmission tile slot rewrite (water_tile.rs), PairedLane2x folded Wave64-on-Wave32 lowering (wave.rs/spirv.rs), loose-pieces pipeline compiler, static LDS alias/hazard analysis, STRATA_EARLY_DEPTH, compute meshlet expansion fallback (mesh_expand.rs), and vendor/precision + DXR 1.1 BVH4 tri1/OBB fixes (vendor_fixes.rs) ✅ Unit tests + spirv-val (strata-shader)
Peer shader compiler & oracle upgrades: unified 64B BVH fetch + RADV BVH64 / residency guard / LDS bounds (bvh.rs), NonUniformEXT sampler waterfall rewrite (sampler.rs), 256B global_load_* coalescing + wave-uniform SMEM (opt.rs), direct PS mask analysis (ps_masks.rs), RDNA4 wait_flags_by_offset & wave_local_checked (lower_opts.rs), bindless feedback instrumentation & vendor correctness fixes (vendor_fixes.rs), and pure-Rust RDNA2 differential interpreter oracle (interp.rs, tests/rdna2_differential_oracle.rs) ✅ cargo test -p strata-shader (142 unit + 9 integration tests passed, 0 failed)
Standard DXIL/DXBC shader bodies (dx_compute), RAY_QUERY traversal-loop lifting (STRATA_RAY_QUERY=1), and remaining SSA/Wave64 optimizations ✅ Pure-Rust LLVM 3.7 bitcode disassembler (dx_compute/bitcode.rs, no external dxc required; full instruction/type/metadata decoding, !dx.entryPoints & !dx.resources extraction) + multi-stage DXIL/DXBC (compute, vertex, pixel, geometry, mesh, library) with CBV/texture/sampler/UAV/atomic/LDS lowering through shared SSA to SPIR-V (strata-shader dx & strata-cli DXIL tests)
No-API Vulkan 1.3+ GPU Backend & 3-Tier Hybrid UMA
Component Status Verified By / Current Scope
Tier 1 Zero-Copy Host UMA (VirtualAlloc/mmap → VK_EXT_external_memory_host → 64-bit BDA) ✅ Live GPU read/write test (0 memcpy, 64/64 lanes)
Tier 2 DEVICE_LOCAL GDDR6 VRAM Mirror + Cross-Tier GPU execution ✅ Live GPU test reading Tier 2 VRAM → writing Tier 1 CPU RAM
Tier 3 vkQueueBindSparse 64 KiB Aliased 2D VkImages (SparseTilePool + sparse_alias.rs) ✅ Live straight-range RGBA8 tile binds, heap alias ownership, copy/unmap, SparseMipLayout multi-tile opaque mip tails, VK_IMAGE_ASPECT_METADATA_BIT binds, and register_sparse_render_target guest color/depth RT integration
No-API VK_KHR_dynamic_rendering + graphics draws (GraphicsPsoState, flipped viewport, title-memory writeback) + Slang vertex-less present_blit.slang ✅ Live GPU render & draw tests (tests/draws.rs; 0 RenderPasses, 0 Framebuffers, 0 VertexBuffers)
Fence-gated Bindless Slot Manager (SHOW_AFTER), ThinCommandList + ThinTranslationPool, BarrierCoalescer, adapter-limit validation for direct and indirect dispatches, FramePacingClock, and cross-platform SwapchainPresenter (Win32, Xlib/Xcb/Wayland) ✅ Unit tests + live COM → Vulkan compute/graphics execution and surface creation
Textures from T#s in title memory (GFX10 formats incl. BC1–BC7, Depth/Stencil, 189/190/191, SW_64KB_D, bank-XOR _X, multi-mip detile/retile), dirty_log clean-region skipping, and S# samplers (STRATA_MAX_ANISO cap + canonical static sampler order) ✅ Unit + live GPU tests (texture.rs, images.rs)
Shadowed Tier 2 mirrors: MEM_WRITE_WATCH + PAGE_GUARD VEH tracker, page-exact CPU upload, 3-way dword-diff GPU→title read-back ✅ Live GPU & unit tests
Memory, Residency & OOM Defense: wired MirrorAdmissionPolicy (64 KiB floor + 1/8th large-buffer reserve), 64-way ShardedDirtyJournal + CardHeatTracker, PressureGuard + OomCircuitBreaker + 16 GB ReBAR guard + fetch-buffer step-down, DynamicRtReserve + levels_on_demand, 8 GiB SpareVaWindow + 4 MiB LateCbvPromoter, 393K dynamic descriptor allocator + normalized writes + inplace_active, 32-shard ImagePublicationFence, background RetireQueue (strata-bury) + FramesAheadPacer, Intel Arc mesh_rest, blend-hash canonicalization + 64 MiB bounded PSO compiler, and pooled-only aliasing barriers ✅ Live-wired across uma.rs, dirty_log.rs, runner.rs, texture.rs, descriptors.rs, bindless.rs, indirect_upload.rs, queues.rs, graphics.rs, async_submit.rs, and images.rs
GPU RT/VRAM & Hot-Path Hardening: out-of-process RT node-probe (ray_probe.rs), driver shader-compile commit-floor guard (compilemem.rs), BVH/RT allocator & lifecycle (backward-shift hash removal, best-fit 256B splitting/coalescing, scratch-buffer sub-allocator, pump_retired_slices, compacted-size deferral/rehydrate/reclaim-thrash backoff in raytracing.rs + bvh_builder.rs), active VRAM budget polling/hysteresis & 4/8 GB profiles (vram.rs), wave-tick SEEN residency bitset (residency.rs), SubmitRelayBatcher (async_submit.rs), refused-pipeline log + translator-versioned cache purge + bounded eager compilation (pipeline_usage.rs), placed-copy forwarding (port_rt.rs), WC subrange skip + coalesced landing (readback.rs), CleanCache + CardCompareBatch (dirty_log.rs), SharedWatchRegistry (write_watch.rs), PreludeTextureQueue (uma.rs), lock-released swapchain present (swapchain.rs), and replay predication attribution + shader retranslation (replay.rs) ✅ Unit tests (strata-gpu, strata-hle)
Peer GPU memory, execution & rendering upgrades: WDDM SHARED pressure guard + 32-burst OOM breaker, submission-aware VRAM eviction, wave-tick residency promotion, ReBAR direct copies, staging cap & scratch-ladder churn fix, 256 KiB low-RAM windows, ABI-padding normalization, generational slot hardening, and VRAM-full pool hole reuse (mem_defense.rs); exec_opt.rs & render_fixes.rs wired into ComputeRunner (runner.rs: draw-order pipeline forecasting, non-RT pass skip list, queue-signal profiling, 80 ms PSO wait cap, async reaper/recycler, batched indirect merging, lock-free watch tracking, Vulkan fault diagnostics, smart BC mip capping, readback buffer pool, ambient probe filters, FSR/DLSS fallbacks, and file-triggered frame dumps) ✅ cargo test -p strata-gpu (all unit tests passed, 0 warnings)
True async compute queue scheduling & two-queue async compute planner (VK_QUEUE_COMPUTE_BIT), deferred descriptor overwrites, GPU compute BCPack & texture detile, VRAM ledger / commit-charge valve / 4 GB Polaris margin / single-copy BAR / SoftPageTable, depth/stencil UAV shadow-texture sync, lazy GPU→CPU readback, hot A/B switches, and above-40-bit host arena ✅ Symmetric Graphics↔AsyncCompute RAW/WAR/WAW hazards & retirement (queues.rs, runner.rs), deferred descriptor barriers, GPU compute decode/detile pipelines, VRAM ledger & commit-charge valve, SoftPageTable, DepthStencilShadowSync, UmaManager lazy 3-way dword-diff readback, and Above40BitHostArena ([1<<40, 1<<47))
PE32+ Loader & Console HLE
Component Status Verified By / Current Scope
PE32+ mapping through the Windows loader (.pdata, relocations, IAT, static TLS on every thread, side-by-side title DLLs, DLL_THREAD_ATTACH/DETACH, LoadLibrary*/GetProcAddress/exit hooks, kernelx.dll fallback, crash reporter) ✅ Unit tests + probe title (tests/probe.rs)
Live Windows VEH (clzero, rdpru, rdpid, monitorx/mwaitx, clwb) + AMD SSE4a (extrq/insertq/movntsd/movntss) emulation with upper-64-bit zeroing & runtime SSE2 binary patching ✅ Unit tests + live VEH handler (veh.rs, sse4a.rs)
xmem.dll (XMemVirtualAlloc/Free/Protect, PhysicalPagePool, scatter map/unmap, working-set stats) & VFS drive rewriter (MicrosoftGame.config/.xvc mounting, \??\ NT prefix stripping, copy-on-write overlay, STRATA_MODS=1 read-only mods/ overlay) ✅ Wired to UmaManager + PhysicalPagePool + vfs.rs; unit + live UMA tests
d3d12_xs.dll COM vtables (44-slot StandardDevice, SuspendX/ResumeX slots 23/24, PresentX frame pacing, ID3D12PipelineLibrary), xg_xs.dll, DStorageGetFactory (incl. read-only page fallback), offline xgameruntime.dll (287 native handlers + 109 offline-refused = 396 / 396), GameInput, crash rumble-stop, XAudio2/AcpHal (PCM, XMA2, 1–8 ch Opus), offline ws2_32/winhttp/rpcrt4/mfplat, and strata-cli save {list,export,import} ✅ Real COM vtables, probe title, unit & live UMA tests; unresolved console imports get per-import named stubs
Inline D3D12.X command buffer (console_list.rs: graphics + compute root-argument records, 28-byte pipeline packets, 40 GFX10/RDNA2 PM4 packets incl. DRAW_INDIRECT_MULTI, DRAW_INDEX_INDIRECT_MULTI, DISPATCH_MESH_DIRECT, DISPATCH_MESH_INDIRECT_MULTI, SET_SH_REG_INDEX, SET_CONTEXT_REG_INDEX, CLEAR_STATE, InlineBuffer overflow tracking, AllocateUploadMemory, 8-bit indices) & full 14-mode BC6H block packing/unpacking in strata-formats ✅ Unit & conformance tests (strata-hle: 178 passed, strata-formats: 35 passed, d3d12x_conformance: 8/8 passed)
Loader hardening (/HIGHENTROPYVA:NO, PE32 skip, section & DIR64 bounds, Smart App Control decode, simple-filename DLL check, atomic rename-race writes, SWF header validation, 5s title_exit grace wait), DirectStorage DecodedBlockCache, Bink 9-export thunks, 2048-pt radix-2 FFT XdspConvolutionReverb + MMCSS Pro Audio thread, STRATA_MODS=1 VFS overlay, 21-bit PFN ceiling, double-buffered XGameSave commits, damaged TOML quarantine + atomic save, VEH fault trace + hang-watch/thread-dump scheduling, action KBM preset + PadFrame record/replay, and Linux RLIMIT_NICE check ✅ Live-wired across build.rs, loader.rs, linux_loader.rs, title.rs, dstorage.rs, thunks.rs, audio.rs, xmem_phys.rs, gdk_save.rs, config.rs, veh.rs, stacks.rs, input.rs, and main.rs
Extended HLE, Input, Audio, Formats & Diagnostics: MFResetDXGIDeviceManagerX D3D12→D3D11 bridge (mfplat.rs), per-worker DXC COM IMalloc heap (dxc_heap.rs), XMem 512 MiB below-4 GiB reservation + 2 MiB XMEM_LARGE_PAGES fallback + ERA validation + coalesced scatter mapping (xmem_phys.rs), native Streamline/DLSS/FSR FFI loader (upscaler.rs), offline handling for supported title network imports (netoff.rs), Raw Input KB+M & 1:1 mouse camera hook (gameinput.rs/input.rs), Layout::Blocks DSP convolution (audio.rs), Lua modding host (lua_mods.rs), and deep diagnostics (wait_handles.rs, alias.rs, memdiag.rs, live_stall.rs) ✅ Unit & integration tests (strata-hle: 172 passed; strata-formats: 32 passed)
Peer HLE, Title Hooks, Input, Audio DSP, Formats & CLI/Ops upgrades: title streaming/submission/quality hooks, minidump crash capture, D3D12.X conformance, Stadia/Generic/MenuPad HID + keyboard key-cap prompts, deferred GPU readback materialization on file I/O (lazy_io.rs), loading-screen DirectStorage hold (load_hold.rs), overlap-add & AVX2+FMA FFT partitioned convolution + phone passthrough (dsp.rs), batched soft-page XMem streaming & BTreeMap hole tracking (xmem_soft.rs), physical-core-first affinity & lock-free wide_each (cores.rs), closed-loop adaptive FPS/LOD governor (optimizer.rs), AVX2 & branchless BCPack + 9-bit VLC LUT (bcpack.rs, wmapro.rs), BM-v1 benchmark schema (run_metrics.rs), isolated warm-up process group (warm.rs), and Proton setup helper (scripts/strata-proton-setup.sh) ✅ Full workspace test suite (841+ tests passed, 0 failed)
Ray Tracing, Display/Upscaling & Diagnostics/Tooling
Component Status Verified By / Current Scope
Ray tracing runtime (AccelStructManager, temporal BMA shortcut table + bma_mapping.slang, hardware RayQuery probe + ray_probe.slang, 3 XboxBvhBuilder modes) ✅ Unit + live GPU tests (bma.rs, ray_probe.rs, bvh_builder.rs)
Spatial GPU upscaler (upscale.slang EASU/RCAS), baseline post passes (STRATA_HUD=1, STRATA_AMBIENT_CLAMP), strata-cli warm (Job Object, --giants-only, --stall-secs, --progress-json), shader-fingerprint, scripts/benchmark.ps1, and scripts/launcher.ps1 ✅ Live GPU tests (display.rs), CLI unit tests, and paired benchmark script
Native RT & BVH4/FBT/rt_diff runtime (AccelStructManager, dirty-bucket coalescing, sync compacted-size answer, RT-off compute pass skip, GPU blas_last_epoch sweep, SPV_KHR_ray_query lifter, dual-dispatch rt_diff verification), Streamline DLSS SR+FG & AMD FSR 4/3.1 FG plus built-in Slang spatial fallback, live Frame Generation (HUD-less plane + dual FPS + Bink movie gate + resize survival), ultrawide letterboxing / 9-tap CAS / 2560×1440 UI pool, scene-aware SH ambient GI + mirror ambient, and decoupled FramePacer ✅ Hardware VK_KHR_acceleration_structure + RayQuery probe, rt_diff parity, Streamline DLSS SR+FG & FSR 4/3.1 FG + spatial fallback
Full D3D12.X conformance test matrix, 7-scene benchmark harness, live-parity & visual pixel-diff replay, sampling stack profiler, hot A/B switches, Tauri launcher (readiness checks, SDK verification, rollback, Discord RPC, idle AC warm-up, precompile progress + Skip UI), and release verification ✅ Expanded d3d12x_conformance suite, strata-cli benchmark/replay/profiler tools, Tauri v2 launcher, and cargo test --workspace (841+ tests, 0 failed, 303 documented STRATA_* switches)

Quick Start

Requirements

  • OS: Windows 10 / 11 x64
  • Toolchain: Rust (Edition 2024, MSVC target) + Visual Studio C++ Build Tools
  • SDK: Vulkan SDK 1.3+ (provides slangc.exe for build-time Slang compilation and spirv-val.exe for shader validation tests)
  • GPU: NVIDIA, AMD, or Intel Arc Vulkan 1.3+ GPU supporting bufferDeviceAddress, descriptorIndexing, dynamicRendering, sparseResidencyImage2D, and VK_EXT_external_memory_host (SIMD8 / SIMD16 / Wave32 / Wave64 supported)

Build & Run Tests

# Run all unit tests (includes slangc compilation and spirv-val validation)
cargo test --workspace

# Fast pure-Rust workspace unit tests (skips the ~68s 1,465-opcode SPIR-V validation sweep)
cargo xtask test-fast

# Require spirv-val and list reported hardware skips on Windows
.\scripts\test.ps1

# Verify scaled presentation planes and executable replay on the selected GPU
cargo run -p strata-cli -- smoke --require-gpu

# Inspect your GPU's No-API Vulkan 1.3+ capabilities
cargo run -p strata-cli -- probe

# Run all 9 live GPU tests (BDA, Slang shaders, Zero-Copy UMA, Dynamic Rendering, Wave64-on-32)
cargo run -p strata-cli -- gpu-test

# Run live 3-Tier Hybrid UMA test (Zero-Copy Host + GDDR6 Mirror + vkQueueBindSparse)
cargo run -p strata-cli -- uma-test

CLI Reference

strata-cli probe                   # Query GPU No-API Vulkan 1.3+ features & subgroup size
strata-cli smoke [--window] [--require-gpu] [--report FILE] [--pipeline-cache-dir DIR]
                                   # Verify compositor planes, replay diff, and pipeline cache warm-up
strata-cli selftest                # Verify embedded Slang SPIR-V & direct RDNA2 -> SPIR-V emitter
strata-cli gpu-test                # Run live GPU tests (RDNA2 BDA, Slang, Zero-Copy UMA, Wave64-on-32, BMA, ray probe)
strata-cli uma-test                # Run live 3-tier hybrid UMA + vkQueueBindSparse test
strata-cli inspect <path.exe|lib>      # Parse PE32+ headers or COFF .lib import libraries & classify imports
strata-cli bind-check <path.exe>       # Dry-run IAT resolution against Strata HLE + Host Windows
strata-cli map-test <path.exe> [--execute] # Map PE32+, patch IAT, init TLS (+ optional entry exec & synthetic COM check)
strata-cli run <path.exe> [--window] [--borderless] [--console series-x|series-s] [--output WxH] [--frame-cap FPS] [--frame-interval-ms N] [--uncapped-present] [--vram-budget-gib 4|8|12] [--data-root DIR] [--offline] [--report FILE] [--frame-times CSV] [--capture FILE] [--capture-frame N] [--pipeline-cache FILE] [--no-prewarm|--cold-pipelines] [--unimplemented trap|zero|notimpl] [--mount D=C:/folder]... [--search-dir DIR] [--crash-log FILE]
                                       # Load the title and its DLLs, bind, attach, run (+ optional desktop PresentX window, borderless fullscreen, FPS cap, COMMIT.txt banner & metrics); exit code of the title
strata-cli preflight [target] [--json] # Hardware-tier & Series S auto-profile, Windows pagefile/commit headroom warning & COMMIT.txt stamp
strata-cli save <list|backup|restore|restore-preview|share|import-pending|export|import|wgs-list|wgs-import|write-manifest|verify-manifest|convert-ps5> ...
                                       # Manage saves, SHA-256 manifests (SHA256SUMS.txt), and PS5->Xbox ASAV conversion
strata-cli gdk-coverage [--all]            # Audit GDK vtable routes
strata-cli dx-compute <shader.dxil|shader.dxbc> <output.spv> [tN[:space]=SGPR|uN[:space]=SGPR]...
strata-cli warm <cache-dir> [pipeline-cache-file] [--manifest FILE] [--full|--mesh-only] [--giants-only [--floor-mb N]] [--budget-secs N] [--stall-secs N] [--retry-failed] [--progress-json]
                                       # Crash-resilient out-of-process PSO prebuilder (prebuild-inflight.txt skip-on-resume, console isolation & translator-version cache purge)
strata-cli translate <file-or-dir> [--write-baseline FILE | --check-baseline FILE] [--validate] [--require-complete] [--top N]
                                       # Compile every shader found (XBCH/FSSM in any file); rank blockers or check against a baseline
strata-cli isa-coverage [--all]        # Print per-opcode RDNA2 decode and SPIR-V translation coverage
strata-cli census <file-or-dir> [--json] # Report file counts, stages and RDNA2 word encodings
strata-cli shaders <file-or-dir> [store-dir]               # Batch pre-translate shaders into persistent versioned store
strata-cli replay <inspect <a.scap> | diff <a> <b> | bisect <a> <b> | trace <a.scap> [out.json] | run <a.scap>> # Inspect, diff, bisect, trace, or replay deterministic SCAP frame captures
strata-cli config                      # Print resolved strata.toml + STRATA_* env config and verify asset-path policy
strata-cli data-path <title.exe> [--data-root DIR]
strata-cli shader-fingerprint          # Print deterministic strata-shader fingerprint for launcher warm-up gating
strata-cli verify <game-dir>           # Read-only check of unpacked game directory & PE64 executables
presets\play-4gb-series-s.bat <path.exe>   # Turnkey 4-6 GB VRAM / Series S preset
presets\play-8gb-balanced.bat <path.exe>   # Turnkey 8 GB VRAM balanced preset
presets\play-12gb-high.bat <path.exe>      # Turnkey 12+ GB VRAM high preset (borderless, uncapped)
presets/play-linux-proton.sh <path.exe>    # Turnkey Linux / Proton / Mesa RADV preset
pwsh -STA -File scripts/launcher.ps1
scripts\play.ps1 -Exe <path.exe> [-Console series-x|series-s] [-Adapter <idx|name>] [-Fsr4K quality|balanced|performance]
scripts/launch_linux.sh <path.exe>     # Turnkey Linux launcher (checks RLIMIT_NICE, 1 GiB VRAM headroom, --offline)
scripts\pagefile_16gb_ram.ps1          # Check Windows commit/pagefile headroom on 16 GB RAM hosts
scripts\backup_saves.bat [provider-dir]    # Turnkey save backup + SHA256SUMS.txt manifest
scripts\collect_logs.bat [out-dir]         # Turnkey diagnostic & crash log collector
scripts\warm_shaders.bat [cache-dir]       # Turnkey crash-resilient PSO prebuilder wrapper
scripts\gen-sha256sums.ps1 -Directory DIR  # Generate SHA256SUMS.txt & COMMIT.txt for release packages
python scripts/check_switches.py --check   # CI gate: verify all STRATA_* env switches are documented in docs/switches.md
cargo xtask status                     # Regenerate assets/readme/status.svg, translation-map.svg, and docs/STATUS.md
cargo xtask test-fast                  # Run pure-Rust workspace unit tests (skips ~68s translated_opcodes_validate)
cargo xtask asset-check                # Refuse game/console content in the repository (install-hook: pre-commit)
cargo xtask switches                   # Verify every documented STRATA_* switch is referenced in Rust code

Runtime switches

Variable Effect
STRATA_SERIAL_LISTS Set to force serial command-list replay
STRATA_TEXTURE_DIRTY_TRACKING=0 Always re-hash textures (also disables prefetch)
STRATA_TEXTURE_PREFETCH=0 No ahead-of-bind texture reads
STRATA_TEXTURE_STORE=<dir> Attach a persistent texture store
STRATA_GPU_HASH=0 Keep texture change detection on the CPU
STRATA_GPU_DETILE=0 Keep detiling on the CPU
STRATA_HUD=1 Draw the frame-time HUD
STRATA_VERIFY_MIRROR_DIFF=1 Enable GPU mirror diff and compare unreported CPU byte ranges for mirrored allocations. Local reports include untouched and missed byte counts.
STRATA_UPSCALE=bilinear Stretch small frames with the blit instead of the GPU upscaler
STRATA_SHARPEN=<0..1> Upscaler sharpening (default 0.3)
STRATA_SAVE_DIR=<dir> Where XGameSave containers and persistent local storage live (default %LOCALAPPDATA%\Strata\Saves)
STRATA_OVERLAY_DIR=<dir> / STRATA_NO_OVERLAY=1 Where writes to the package drives go (default %LOCALAPPDATA%\Strata\Overlay) / write the game folder directly
STRATA_USERS=<1..4> Number of local users
STRATA_NO_PC_GDK=1 Do not forward GDK classes to the system xgameruntime.dll
STRATA_NETWORK=0 Resolve supported Winsock and WinHTTP calls through offline handlers
STRATA_DATA_ROOT=<dir> Per-title overlay, saves, temporary files, and logs
STRATA_UNCAPPED_PRESENT=1 Disable Strata's optional frame pacing and request immediate or mailbox presentation, where supported
STRATA_VRAM_BUDGET_GIB=4/8/12 Cap residency policy and set sampled-texture budget
STRATA_RAW_AFFINITY=1 Pass console thread affinities to the host unchanged
STRATA_NO_HID_PADS=1 Ignore DualShock 4 / DualSense pads
STRATA_AMBIENT_CLAMP=<floor>,<max> Diagnostic only, off by default: clamp ambient floor / luminance on RGBA32F frames (changes the picture; not console emulation)
STRATA_BVH_BMA_PRIOR=<threshold> BMA child-prior pruning threshold (0.0 disables)
STRATA_RAY_QUERY=1 Report ray-traversal loop lift verdicts (off by default)
STRATA_MODS=1 Enable read-only mods/ VFS overlay (STRATA_MODS_DIR overrides path)
STRATA_MIN_ANISO=<2..16> / STRATA_MIP_LOD_BIAS=<-3..3> Opt-in anisotropy floor and mip LOD bias for plain multi-mip material samplers
STRATA_FRAMES_AHEAD=<1..4> CPU-ahead-of-GPU frame pacing depth (default 2)
STRATA_UPSCALER=<fsr4|fsr31|dlss|xess|slang> Select upscaler backend (Streamline DLSS SR+FG, AMD FSR 4/3.1 FG, XeSS, or built-in Slang EASU+RCAS spatial fallback)
STRATA_EARLY_DEPTH=1 / STRATA_GPU_BCPACK=1 / STRATA_GPU_DETILE=1 Force early depth/stencil, enable GPU compute BCPack decoding, and enable GPU compute texture detiling
STRATA_COMMIT_VALVE / STRATA_VRAM_LEDGER / STRATA_SOFT_PAGES Enable Windows commit-charge headroom valve, per-owner VRAM ledger, and GPU SoftPageTable backing
STRATA_TRACE_FAULTS=1 / STRATA_HANG_WATCH_S=<secs> / STRATA_THREAD_DUMP_AT=<secs> Local-only VEH fault logging, hang-watch timer, and timed thread-stack dumps
STRATA_WATER_TILE_SLOTS=0 / STRATA_WAVE64_FOLD=1 Disable Wave32 water/transmission tile slot rewrite / opt into PairedLane2x folded Wave64-on-Wave32 lowering
STRATA_COMPILE_MEMORY=0 / STRATA_COMMIT_FLOOR_MB=<mb> / STRATA_MEMORY_FLOOR_MB=<mb> Control driver shader-compile commit-floor (default 4096 MiB) and soft physical memory throttle (default 1024 MiB)
STRATA_BVH_SIZE_COPY=0 / STRATA_BVH_MAX_MB=<mb> Control deferred BVH compacted-size copies and BVH arena ceiling
STRATA_RELAY_EACH=1 / STRATA_PIPELINE_EAGER=<n> Signal title on first completed fence (<=4 coalesced submits) / bounded eager pipeline compilation (default 256)
STRATA_SKIP_DRAWS=1 / STRATA_SKIP_BINK=1 / STRATA_REPORT_CORES=<n> CPU-bottleneck draw-skip profiling toggle, skip Bink movies, and override reported CPU core count
STRATA_ALLOC=<mimalloc|system> Select host global allocator (mimalloc default or system fallback)

Testing & Verification

Smoke & Hardware Verification

  • strata-cli smoke --window --require-gpu --report <file> reports first visible frame, presents, frames shown, p50/p95 frame times, replay pixel differences, adapter capabilities, and skipped checks. Without --window, it exercises the compositor offscreen.
  • Stand-in probe title: Run cargo test -p strata-hle --test probe probe_title_presents_two_planes -- --ignored on a Windows desktop with Vulkan to test the full PE loader and both title-facing PresentX paths.
  • Paired GPU benchmarks: Run pwsh -File scripts/benchmark.ps1 -Frames 240 for cold and warm offscreen Vulkan runs with adapter and driver info, frame-time percentiles, and SHA-256 report checksums. -Adapter selects by index or substring. Supply a previous summary.json with -BaselineSummary to check p95 and p99 regressions against -MaxRegressionPercent.
  • Input playback: strata-cli run fixture.exe --keys-file keys.txt --window --report run.json supplies deterministic keyboard input to the guest GameInput interface. A script with frame:0 W down and frame:15 W up holds W until the 15th guest present. Use ASCII letters, digits, or hex virtual keys such as 0x20 for Space. Millisecond timestamps from GameInput initialization are also supported in a separate script.
  • Shader conformance reports: strata-cli translate fixtures --validate --report coverage.json writes per-program translation and validation outcomes, stage, descriptor-use counts, and rejection reasons.

Title Runs, Shader Coverage & Pipeline Warm-Up

  • strata-cli run <title> --window --report <file> [--frame-times <csv>] records frame pacing (p50/p95/p99/p99.9), per-frame PresentX counters, pipeline creation stalls, mirrored-memory transfers, called stubs, d3d12.unsupported_pm4_effects, and VFS activity. Use --pipeline-cache <file> to merge a pre-warmed cache, --no-prewarm / --cold-pipelines for cold measurements, or STRATA_GPU_MIRROR_DIFF=1 for GPU-side byte merging on allocations ≥ 1 MiB. See docs/replay.md for SCAP capture and replay.
  • strata-cli warm <cache-dir> compiles captured compute/graphics/mesh recipes in an isolated worker process (Windows Job Object, 120s per-pipeline stall quarantine via --stall-secs, --giants-only --floor-mb N, --retry-failed, --progress-json, and manifest ordering via --manifest).
  • strata-cli translate requires spirv-val on PATH; use --check-baseline and --require-complete to gate shader corpus regressions.

Saves, Profiles & Launcher

  • Profiles & data isolation: --console series-s defaults to 1280×720; --output and --uncapped-present control host presentation; --data-root isolates per-title overlays, saves, and strata.toml overrides outside the checkout.
  • XGameSave CLI: On Windows, strata-cli save {list,export,import} manages Strata Save v1 archives. save import --replace archives the existing save first and retains the 10 most recent rolling backups.
  • Windows & Tauri Launchers: scripts/launcher.ps1, turnkey presets/ (play-4gb-series-s.bat, play-8gb-balanced.bat, play-12gb-high.bat, play-linux-proton.sh), and launcher/ (Tauri v2 desktop app with hardware readiness checks, SDK verification & rollback, Discord RPC, idle AC shader warm-up, and live precompile progress + Skip UI) manage per-title settings, saves, hardware probes, and pipeline warm-up. For headless launch plans, support bundles, and host preflight, see Launcher and runtime setup.

Differential Verification Strategy

Strata uses a differential, hardware-in-the-loop verification strategy:

  1. Static SPIR-V Validation: Every SPIR-V binary emitted by strata-shader is validated against Khronos spirv-val --target-env vulkan1.3.
  2. Differential GPU Oracles: Complex algorithms (such as watertight RDNA2 image_bvh64_intersect_ray box32 sorting and 64KB_S Morton detiling) are implemented in both pure Rust CPU reference code and Slang GPU shaders, then executed live on the GPU and compared bit-for-bit.
  3. A stand-in title: crates/strata-hle/src/bin/strata_probe.rs is our own Rust program, built with console imports, that tests/probe.rs loads and runs through the title loader to check HLE imports, title DLLs, TLS on threads, unwinding, module-handle hooks, the VFS and exit handling end to end.
  4. Zero-Copy & Sparse Hardware Tests: gpu-test and uma-test exercise VK_EXT_external_memory_host, DEVICE_LOCAL BDA mirrors, VK_KHR_dynamic_rendering, vkQueueBindSparse, and Wave64-on-Wave32 directly on real Vulkan 1.3+ silicon.

License & Provenance

Licensed under GPL-3.0-or-later. See LICENSE.

Strata is an independent clean-room implementation. No code was copied from proprietary SDKs. Code taken from other open-source projects, is listed below with its license. Architectural references are public specifications (Khronos Vulkan / SPIR-V, AMD RDNA2 ISA, Slang, and Microsoft PE32+/Win32 documentation).

Third-party open-source code (see THIRD_PARTY_NOTICES.md):

  • third_party/bcpack-rs — BCPack (MDU rANS) BC1/BC3/BC4/BC5/BC7 decoder by Ahmet Dedeler, vendored under MIT OR Apache-2.0.
  • crates/strata-formats/src/wmapro.rs and wmapro_tables.rs — the XMA path of FFmpeg's WMA Pro decoder, ported to Rust under LGPL-2.1-or-later.
  • crates/strata-formats/src/opus_native/ and opus-pure — native Opus decoding (BSD-3-Clause, ported from libopus 1.5.2).
  • The BMA traversal shortcuts follow Chen, Xie and Yuan, BMA: A Probabilistic Sampling Framework for Accelerated BVH Traversal in Real-Time Ray Tracing, Computers 2026, 15(6), 363 (doi:10.3390/computers15060363).

About

Clean-room Rust compatibility layer for unpacked x86-64 console software on Windows using No-API Vulkan 1.3+, direct RDNA2→SPIR-V 1.6 & Slang.

Topics

Resources

Security policy

Stars

46 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages