TeamVanilla Workshop

SAFX12

SAFX12 is a full graphics add-on for Grand Theft Auto: San Andreas, built on SAon12's Direct3D 12 renderer: ray-traced shadows, GI, reflections, volumetric fog, bloom, TAA, FSR and more.

SAFX12
On this page 3

SAFX12 is a full graphics add-on for Grand Theft Auto: San Andreas (1.0 US, single player and SA-MP), built on SAon12's Direct3D 12 renderer. It is the San Andreas counterpart of FX12 for Most Wanted, with one structural difference: SAFX12 sits inside the renderer rather than outside it, so it sees every draw call before it is translated, not just a finished image and a depth buffer.

It ships as one d3d9.dll containing a vendored SAon12 and the SAFX12 module. Drop it beside gta_sa.exe and the game runs on Direct3D 12 with every effect active.

What it adds

Every pass runs in its own HLSL compute or pixel shader on the D3D12 command list, with no fixed-function fallback. The full pipeline:

CategoryPasses
Lighting and shadowsRay-traced shadows, contact shadows, ray-traced global illumination, ambient occlusion (screen-space and ray-traced), god rays, emissive spill
ReflectionsScreen-space reflections, ray-traced reflections, sky probe
MaterialsVehicle paint, surface specular, vegetation wind
Post-processingBloom, depth of field, motion blur, TAA (temporal anti-aliasing), exposure, colour grading, lens dirt
AtmosphereVolumetric fog, clouds, rain, snow, heat haze, water
Lens effectsAnamorphic flare, lens flare, starburst, sun specular
UpscalingAMD FSR 1 spatial upscaler, with Intel XeSS support
DebugG-buffer visualiser, material debug, GPU timer overlay

How it works

The game makes Direct3D 9 calls. SAon12 translates them into Direct3D 12. SAFX12 intercepts the D3D12 command list between the game's draws and the present, inserts its own compute and pixel shader passes, and hands the finished frame back. Because it lives inside the same binary as the renderer, it has direct C++ access to SAon12 and VanGFX rather than going through a plugin ABI.

Game data comes from SA-SDK and SAEncyclopedia's verified addresses. The scene tap reads the game's entity list, cameras, lights and timecycle state each frame, giving the shaders the material and geometry information the original renderer never exposed.

Every effect has a toggle and per-pass quality settings, drawn with VanGUI in its own panel. SAon12's F12 engine menu is compiled out in SAFX12 builds; the panel replaces it.