mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
tint: Replace smoothStep with smoothstep in tests
There were some tests that were still using the deprecated name, as was the SPIR-V reader. Bug: tint:1483 Change-Id: Ie919596712e05340110fbd872470a1b4c9a625c7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86745 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
c2849f3fb9
commit
0384932f1a
@@ -91,7 +91,7 @@ fn simulate(@builtin(global_invocation_id) GlobalInvocationID : vec3<u32>) {
|
||||
|
||||
// Age each particle. Fade out before vanishing.
|
||||
particle.lifetime = particle.lifetime - sim_params.deltaTime;
|
||||
particle.color.a = smoothStep(0.0, 0.5, particle.lifetime);
|
||||
particle.color.a = smoothstep(0.0, 0.5, particle.lifetime);
|
||||
|
||||
// If the lifetime has gone negative, then the particle is dead and should be
|
||||
// respawned.
|
||||
|
||||
@@ -37,7 +37,7 @@ fn main_1() {
|
||||
let x_52 : vec4<f32> = v1;
|
||||
let x_53 : vec4<f32> = v2;
|
||||
let x_54 : vec4<f32> = v3;
|
||||
v4 = smoothStep(x_52, x_53, x_54);
|
||||
v4 = smoothstep(x_52, x_53, x_54);
|
||||
let x_56 : vec4<f32> = v4;
|
||||
x_GLF_color = vec4<f32>(x_56.x, x_56.y, x_56.w, x_56.x);
|
||||
let x_59 : f32 = v4.x;
|
||||
|
||||
@@ -24,7 +24,7 @@ fn main_1() {
|
||||
let x_32 : vec2<f32> = v1;
|
||||
b = fract(x_32);
|
||||
let x_34 : vec2<f32> = b;
|
||||
a = smoothStep(vec2<f32>(1.0, 1.0), vec2<f32>(1.0, 1.0), x_34).x;
|
||||
a = smoothstep(vec2<f32>(1.0, 1.0), vec2<f32>(1.0, 1.0), x_34).x;
|
||||
let x_38 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
||||
let x_39 : f32 = a;
|
||||
let x_40 : f32 = a;
|
||||
|
||||
@@ -67,7 +67,7 @@ fn main_1() {
|
||||
let x_89 : f32 = x_6.x_GLF_uniform_float_values[1].el;
|
||||
let x_91 : vec4<f32> = v0;
|
||||
let x_93 : i32 = a;
|
||||
v1[x_83] = smoothStep(vec4<f32>(x_85, x_87, x_89, 3.0), vec4<f32>(1.0, 1.0, 1.0, 1.0), x_91)[x_93];
|
||||
v1[x_83] = smoothstep(vec4<f32>(x_85, x_87, x_89, 3.0), vec4<f32>(1.0, 1.0, 1.0, 1.0), x_91)[x_93];
|
||||
}
|
||||
|
||||
continuing {
|
||||
|
||||
@@ -16,7 +16,7 @@ fn main_1() {
|
||||
}
|
||||
g = 3.0;
|
||||
let x_33 : f32 = g;
|
||||
x_GLF_color = vec4<f32>(smoothStep(0.0, 1.0, x_33), 0.0, 0.0, 1.0);
|
||||
x_GLF_color = vec4<f32>(smoothstep(0.0, 1.0, x_33), 0.0, 0.0, 1.0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user