From f7cde7e5a416b75927056a8a73ad379b3e04e1d6 Mon Sep 17 00:00:00 2001 From: Jiawei Shao Date: Sun, 27 Jun 2021 05:28:35 +0000 Subject: [PATCH] Fix wrong declaration in BufferZeroInitTest.BoundAsReadonlyStorageBuffer This patch fixes a wrong buffer type declaration in the shader used in BufferZeroInitTest.BoundAsReadonlyStorageBuffer. In this test the buffer should be bound as a read-only storage buffer, so it should be declared as var instead of var. BUG: none Change-Id: Ib85bf199f64e205b944b7233aae31323cbec1819 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/56042 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Jiawei Shao --- src/tests/end2end/BufferZeroInitTests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/end2end/BufferZeroInitTests.cpp b/src/tests/end2end/BufferZeroInitTests.cpp index 39bd98a314..9f79a0c8e7 100644 --- a/src/tests/end2end/BufferZeroInitTests.cpp +++ b/src/tests/end2end/BufferZeroInitTests.cpp @@ -1035,7 +1035,7 @@ TEST_P(BufferZeroInitTest, BoundAsReadonlyStorageBuffer) { [[block]] struct SSBO { value : vec4; }; - [[group(0), binding(0)]] var ssbo : SSBO; + [[group(0), binding(0)]] var ssbo : SSBO; [[group(0), binding(1)]] var outImage : texture_storage_2d; [[stage(compute), workgroup_size(1)]] fn main() {