Merge pull request #405 from sanyamsingh001/fix/gpu-threshold-parity

Fix GPU Posterize threshold parity

# Conflicts:
#	contributors/people.toml
This commit is contained in:
Brandon Thomas
2026-10-09 10:21:53 -04:00
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ fn fxs_smoothstep(e0: f32, e1: f32, x: f32) -> f32 {
fn fxs_qdiv(x: vec3<f32>, a: f32) -> vec3<f32> {
let q = x / a;
let r = fma(-q, vec3<f32>(a), x);
return q + r / a;
return fma(r / a, vec3<f32>(1.0), q);
}
fn fxs_rem2(i: i32) -> i32 {