wgsl: Deprecate '-> void' on functions

Was removed with:
https://github.com/gpuweb/gpuweb/pull/1460

Bug: tint:677
Change-Id: If08cb450189c6158561051ef6e8f2439c60bc010
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/47140
Auto-Submit: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2021-04-08 14:39:47 +00:00
committed by Commit Bot service account
parent d15391e802
commit 9328d94572
48 changed files with 645 additions and 600 deletions

View File

@@ -2244,7 +2244,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
ValidTextureOverload::kStoreWO1dRgba32float,
"textureStore(t : texture_storage_1d<rgba32float>,\n"
" coords : i32,\n"
" value : vec4<T>) -> void",
" value : vec4<T>)",
ast::AccessControl::kWriteOnly,
type::ImageFormat::kRgba32Float,
type::TextureDimension::k1d,
@@ -2260,7 +2260,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
ValidTextureOverload::kStoreWO2dRgba32float,
"textureStore(t : texture_storage_2d<rgba32float>,\n"
" coords : vec2<i32>,\n"
" value : vec4<T>) -> void",
" value : vec4<T>)",
ast::AccessControl::kWriteOnly,
type::ImageFormat::kRgba32Float,
type::TextureDimension::k2d,
@@ -2277,7 +2277,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
"textureStore(t : texture_storage_2d_array<rgba32float>,\n"
" coords : vec2<i32>,\n"
" array_index : i32,\n"
" value : vec4<T>) -> void",
" value : vec4<T>)",
ast::AccessControl::kWriteOnly,
type::ImageFormat::kRgba32Float,
type::TextureDimension::k2dArray,
@@ -2294,7 +2294,7 @@ std::vector<TextureOverloadCase> TextureOverloadCase::ValidCases() {
ValidTextureOverload::kStoreWO3dRgba32float,
"textureStore(t : texture_storage_3d<rgba32float>,\n"
" coords : vec3<i32>,\n"
" value : vec4<T>) -> void",
" value : vec4<T>)",
ast::AccessControl::kWriteOnly,
type::ImageFormat::kRgba32Float,
type::TextureDimension::k3d,

View File

@@ -98,7 +98,7 @@ fn f1(p0 : f32, p1 : i32) -> f32 {
}
[[stage(fragment)]]
fn main() -> void {
fn main() {
f1(1.0, 2);
}
@@ -106,7 +106,7 @@ const declaration_order_check_0 : i32 = 1;
type declaration_order_check_1 = f32;
fn declaration_order_check_2() -> void {}
fn declaration_order_check_2() {}
type declaration_order_check_2 = f32;