mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Remove deprecated WGSL "-> void"
Bug: dawn:755 Change-Id: I10f2fb3afd26560df10b21d149a65b625bdb2b4b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47600 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
71f3d58939
commit
21bd02becf
@@ -119,7 +119,7 @@ void init() {
|
||||
[[location(2)]] var<out> f_col : vec3<f32>;
|
||||
[[builtin(position)]] var<out> Position : vec4<f32>;
|
||||
|
||||
[[stage(vertex)]] fn main() -> void {
|
||||
[[stage(vertex)]] fn main() {
|
||||
f_col = col;
|
||||
Position = camera.proj * camera.view * model.matrix * vec4<f32>(pos, 1.0);
|
||||
return;
|
||||
@@ -129,7 +129,7 @@ void init() {
|
||||
[[location(0)]] var<out> FragColor : vec4<f32>;
|
||||
[[location(2)]] var<in> f_col : vec3<f32>;
|
||||
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
[[stage(fragment)]] fn main() {
|
||||
FragColor = vec4<f32>(f_col, 1.0);
|
||||
return;
|
||||
})");
|
||||
@@ -138,7 +138,7 @@ void init() {
|
||||
[[location(0)]] var<out> FragColor : vec4<f32>;
|
||||
[[location(2)]] var<in> f_col : vec3<f32>;
|
||||
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
[[stage(fragment)]] fn main() {
|
||||
FragColor = vec4<f32>(mix(f_col, vec3<f32>(0.5, 0.5, 0.5), vec3<f32>(0.5, 0.5, 0.5)), 1.0);
|
||||
return;
|
||||
})");
|
||||
|
||||
Reference in New Issue
Block a user