[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 <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2020-04-29 18:50:21 +00:00 committed by Ryan Harrison
parent b5b960ed49
commit a308ae2a7f
1 changed files with 14 additions and 2 deletions

View File

@ -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 // vec.yx
} }
TEST_F(BuilderTest, DISABLED_Accessor_Mixed) { TEST_F(BuilderTest, DISABLED_Accessor_Mixed_ArrayAndMember) {
// a[0].foo[2].bar.baz.yx // 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
} // namespace spirv } // namespace spirv
} // namespace writer } // namespace writer