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
@@ -44,7 +44,7 @@ void init() {
|
||||
" vec2<f32>(-0.5, -0.5),\n"
|
||||
" vec2<f32>( 0.5, -0.5)\n"
|
||||
");\n"
|
||||
"[[stage(vertex)]] fn main() -> void {\n"
|
||||
"[[stage(vertex)]] fn main() {\n"
|
||||
" Position = vec4<f32>(pos[VertexIndex], 0.0, 1.0);\n"
|
||||
" return;\n"
|
||||
"}\n";
|
||||
@@ -52,7 +52,7 @@ void init() {
|
||||
|
||||
const char* fs =
|
||||
"[[location(0)]] var<out> fragColor : vec4<f32>;\n"
|
||||
"[[stage(fragment)]] fn main() -> void {\n"
|
||||
"[[stage(fragment)]] fn main() {\n"
|
||||
" fragColor = vec4<f32>(1.0, 0.0, 0.0, 1.0);\n"
|
||||
" return;\n"
|
||||
"}\n";
|
||||
|
||||
Reference in New Issue
Block a user