mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 22:56:09 +00:00
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:
committed by
Commit Bot service account
parent
d15391e802
commit
9328d94572
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user