From a308ae2a7f1e480ffa8482c99f477e066d5431ec Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Wed, 29 Apr 2020 18:50:21 +0000 Subject: [PATCH] [spirv-writer] Stub out more accessor tests This CL adds more tests to be written for the accessor code. Bug: tint:5 Change-Id: Ie3a349bfb372dc7f8069d2117bf4fdd48f2da07a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20621 Reviewed-by: Ryan Harrison --- .../spirv/builder_accessor_expression_test.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/writer/spirv/builder_accessor_expression_test.cc b/src/writer/spirv/builder_accessor_expression_test.cc index 2e1b85f155..f7f1eed000 100644 --- a/src/writer/spirv/builder_accessor_expression_test.cc +++ b/src/writer/spirv/builder_accessor_expression_test.cc @@ -509,14 +509,26 @@ TEST_F(BuilderTest, MemberAccessor_Swizzle_Single) { )"); } -TEST_F(BuilderTest, DISABLED_MemberAccessor_Swizzle_Multiple) { +TEST_F(BuilderTest, DISABLED_MemberAccessor_Swizzle_MultipleNames) { // vec.yx } -TEST_F(BuilderTest, DISABLED_Accessor_Mixed) { +TEST_F(BuilderTest, DISABLED_Accessor_Mixed_ArrayAndMember) { // a[0].foo[2].bar.baz.yx } +TEST_F(BuilderTest, DISABLED_MemberAccessor_Swizzle_of_Swizzle) { + // vec.yxz.xz +} + +TEST_F(BuilderTest, DISABLED_MemberAccessor_Member_of_Swizzle) { + // vec.yxz.x +} + +TEST_F(BuilderTest, DISABLED_MemberAccessor_Array_of_Swizzle) { + // vec.yxz[1] +} + } // namespace } // namespace spirv } // namespace writer