[inspector] test interference between sampled and multisampled resources
Change-Id: Icea3b4acfa407110d9ae078e9b3ea13fb13ca31e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/32561 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
parent
a1123d514d
commit
3ec1d5eae7
|
@ -2053,6 +2053,13 @@ TEST_P(InspectorGetSampledTextureResourceBindingsTestWithParam, textureSample) {
|
|||
EXPECT_EQ(0u, result[0].binding);
|
||||
EXPECT_EQ(GetParam().inspector_dim, result[0].dim);
|
||||
EXPECT_EQ(GetParam().sampled_kind, result[0].sampled_kind);
|
||||
|
||||
// Prove that sampled and multi-sampled bindings are accounted
|
||||
// for separately.
|
||||
auto multisampled_result =
|
||||
inspector()->GetMultisampledTextureResourceBindings("ep");
|
||||
ASSERT_FALSE(inspector()->has_error()) << inspector()->error();
|
||||
ASSERT_TRUE(multisampled_result.empty());
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
|
@ -2208,6 +2215,13 @@ TEST_P(InspectorGetMultisampledTextureResourceBindingsTestWithParam,
|
|||
EXPECT_EQ(0u, result[0].binding);
|
||||
EXPECT_EQ(GetParam().inspector_dim, result[0].dim);
|
||||
EXPECT_EQ(GetParam().sampled_kind, result[0].sampled_kind);
|
||||
|
||||
// Prove that sampled and multi-sampled bindings are accounted
|
||||
// for separately.
|
||||
auto single_sampled_result =
|
||||
inspector()->GetSampledTextureResourceBindings("ep");
|
||||
ASSERT_FALSE(inspector()->has_error()) << inspector()->error();
|
||||
ASSERT_TRUE(single_sampled_result.empty());
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
|
|
Loading…
Reference in New Issue