Fix AMD shader extensions test to check for tuples

This commit is contained in:
baldurk
2021-01-29 10:57:39 +00:00
parent 85e767b969
commit 2629a8b096
@@ -25,8 +25,8 @@ class D3D11_AMD_Shader_Extensions(rdtest.TestCase):
rd.CompType.UNorm)
pixels.append(picked.floatValue[0:4])
if (not [1.0, 0.0, 0.0, 1.0] in pixels) or (not [1.0, 0.0, 0.0, 1.0] in pixels) or (
not [1.0, 0.0, 0.0, 1.0] in pixels):
if (not (1.0, 0.0, 0.0, 1.0) in pixels) or (not (1.0, 0.0, 0.0, 1.0) in pixels) or (
not (1.0, 0.0, 0.0, 1.0) in pixels):
raise rdtest.TestFailureException("Expected red, green and blue in picked pixels. Got {}".format(pixels))
rdtest.log.success("Picked barycentric values are as expected")