Files
Triforce-Source/tests/fsr4_tune/written.hlsl
ruckus7382sfgsgdf 4fa4f9188b Triforce v0.8.0
Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
2026-11-25 10:21:32 -06:00

12 lines
575 B
HLSL

// A table the shader writes into itself (tests/test_fsr4_tune.py): it must stay where it is. Built in this folder with:
// dxc -spirv -T cs_6_0 -E fsr4_model_test_pass3 -fspv-target-env=vulkan1.3 -Fo written.spv written.hlsl
RWByteAddressBuffer ScratchBuffer : register(u0);
[numthreads(64, 1, 1)]
void fsr4_model_test_pass3(uint3 id : SV_DispatchThreadID) {
uint t[4] = { 1u, 2u, 3u, 4u };
t[ScratchBuffer.Load(0) & 3] = ScratchBuffer.Load(4);
uint acc = 0;
for (uint i = 0; i < 4; i++) acc += t[(i + id.x) & 3];
ScratchBuffer.Store(id.x * 4, acc);
}