Unique method names in computeboids
WebGPU requires unique entry point names. Change-Id: I0dc5123abdc1a4da343b60460443498f8611d7b9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/21021 Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
parent
b1870eff04
commit
265d5d0904
|
@ -29,7 +29,7 @@ fn vtx_main() -> void {
|
||||||
gl_Position = vec4<f32>(pos + a_particlePos, 0.0, 1.0);
|
gl_Position = vec4<f32>(pos + a_particlePos, 0.0, 1.0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
entry_point vertex as "main" = vtx_main;
|
entry_point vertex as "vert_main" = vtx_main;
|
||||||
|
|
||||||
# fragment shader
|
# fragment shader
|
||||||
[[location 0]] var<out> fragColor : vec4<f32>;
|
[[location 0]] var<out> fragColor : vec4<f32>;
|
||||||
|
@ -38,7 +38,7 @@ fn frag_main() -> void {
|
||||||
fragColor = vec4<f32>(1.0, 1.0, 1.0, 1.0);
|
fragColor = vec4<f32>(1.0, 1.0, 1.0, 1.0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
entry_point fragment as "main" = frag_main;
|
entry_point fragment as "frag_main" = frag_main;
|
||||||
|
|
||||||
# compute shader
|
# compute shader
|
||||||
type Particle = struct {
|
type Particle = struct {
|
||||||
|
@ -149,5 +149,5 @@ fn compute_main() -> void {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
entry_point compute as "main" = compute_main;
|
entry_point compute as "comp_main" = compute_main;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue