[host_shaders] Store the value of results instead of discarding it (#3464)

the function generated the value but we never stored it effectively discarding the result.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3464
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Reviewed-by: Maufeat <sahyno1996@gmail.com>
Co-authored-by: wildcard <wildcard@eden-emu.dev>
Co-committed-by: wildcard <wildcard@eden-emu.dev>
This commit is contained in:
wildcard 2026-02-07 22:44:32 +01:00 committed by crueter
parent 71e035f83b
commit e10f55d9db
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void WriteResults(uvec2 results[LOCAL_RESULTS]) {
const uvec2 accum = accumulated_data; const uvec2 accum = accumulated_data;
for (uint i = 0; i < LOCAL_RESULTS; i++) { for (uint i = 0; i < LOCAL_RESULTS; i++) {
uvec2 base_data = current_id * LOCAL_RESULTS + i < min_accumulation_base ? accum : uvec2(0, 0); uvec2 base_data = current_id * LOCAL_RESULTS + i < min_accumulation_base ? accum : uvec2(0, 0);
AddUint64(results[i], base_data); results[i] = AddUint64(results[i], base_data);
} }
for (uint i = 0; i < LOCAL_RESULTS; i++) { for (uint i = 0; i < LOCAL_RESULTS; i++) {
output_data[buffer_offset + current_id * LOCAL_RESULTS + i] = results[i]; output_data[buffer_offset + current_id * LOCAL_RESULTS + i] = results[i];