Skip to content

Releases

shaderscan v1.0.2

Choose a tag to compare

@miroslavdanutalexandru-alt miroslavdanutalexandru-alt released this 24 Nov 22:44

rpcs3 back end (Resistance 2 / 3): fragment variants for the two control bits RPCS3 sets from draw state.

  • EMULATE_DEPTH_COMPARE (0x08000000, polygon draws with depth func EQUAL) and TEXTURE_FORMAT_CONVERT
    (0x04000000, a bound texture needs a format remap) give one program several fragment keys. Templates of the
    profile that differ from a chosen one only in these bits are now added, with their own learned pipeline state:
    depth-compare ones always, format-convert ones when used at least half as often as the least used chosen template.
    Embedded profiles: R2 2382 -> 3108 fragment variants, recorded pipelines with a generated fragment state 83 -> 91 %;
    R3 6311 -> 9268, 53 -> 73 % (--variants 9 alone gets 67 % for the same count).
  • The stamp gets a ctrlvar 1 line. --check asks for a rescan of R2/R3 caches written without it (it only adds
    the new entries). SHADERSCAN_VERSION stays 1, so R1 (r1d3d12) caches are not rescanned.

SHA-256 of shaderscan.exe: 75096547c4fc07300b2c2d5d76e7b2bc67d1f3b9a7339f704b63d04f48c56387

shaderscan v1.0.1

Choose a tag to compare

@miroslavdanutalexandru-alt miroslavdanutalexandru-alt released this 20 Nov 18:07

Update for the Resistance ports v0.3.0-beta.

Changes

  • r1d3d12: seeds the shaders the Resistance: Fall of Man port 0.3.0-beta asks for: the new motion-vector shaders (FSR / DLSS / XeSS), IEEE-strict vertex shaders (AMD / Intel), and the fog / flat-shading / two-side-lighting / border variants. v1.0.0 seeded older text, so many of these were still compiled while playing.
  • New stamp lines (mvtext 3, vsstrict): --check asks for one rescan that only compiles the new shaders.
  • rpcs3 (Resistance 2 / 3): unchanged, SHADERSCAN_VERSION stays 1, no rescan.

Checked: --verify on a 0.3.0 cache re-derives every key and recompiles all 2368 shaders byte-identical.

Windows x64, static runtime. The ports download this exe automatically and check it against shaderscan.exe.sha256 (attached).

Licence: GPL-2.0-only. Third-party: miniz (MIT), the Resistance: Fall of Man port's RSX translators (MIT), part of rsx_ext_state.h adapted from GoW-Ascension-Recomp (MIT).

If you enjoy it and feel like buying me a coffee: buymeacoffee.com/damiro98 ☕

shaderscan v1.0.0

Choose a tag to compare

@miroslavdanutalexandru-alt miroslavdanutalexandru-alt released this 11 Nov 07:41

First standalone release of shaderscan, the offline RSX shader-cache seeder
used by the Resistance PC ports' launchers. It reads a game's own files,
finds the RSX vertex and fragment programs, and writes them into a shader
cache before the first run, so shaders don't compile mid-game.

Back ends

  • rpcs3: RPCS3-format cache (Resistance 2, Resistance 3)
  • r1d3d12: the Resistance: Fall of Man port's D3D12 HLSL/DXBC cache

Notes

  • SHADERSCAN_VERSION 1: caches and stamps written by the copies the ports
    built before stay valid; output is byte-identical to them.
  • Windows x64, static runtime, no DLLs needed. Run shaderscan --help.
  • The ports download this exe automatically and check it against
    shaderscan.exe.sha256 (also attached).

Licence: GPL-2.0-only. Third-party code: miniz (MIT), the Resistance: Fall
of Man port's RSX translators (MIT). Thanks to the RPCS3 project, whose
shader hashing and analysis this follows.