Add test case for read-only storage texture passed to helper function (#2414)

This is based on spv.paramMemory.frag.out which exercises the
writeonly storage image case.

This appears to need desktop GLSL.

The generated SPIR-V fails validation because the image_write function
takes a parameter which is pointer to an OpTypeImage with Unknown format.
But the parameters passed in are pointer to OpTypeImage with formats Rgba32f
and Rgba16f. The validator rejects this, saying the parameter types must
match.
This commit is contained in:
David Neto
2020-10-07 18:10:27 -04:00
committed by GitHub
parent 3ce148638b
commit 2067d1a93e
3 changed files with 173 additions and 0 deletions

View File

@@ -376,6 +376,7 @@ INSTANTIATE_TEST_SUITE_P(
"spv.offsets.frag",
"spv.Operations.frag",
"spv.paramMemory.frag",
"spv.paramMemory.420.frag",
"spv.precision.frag",
"spv.precisionArgs.frag",
"spv.precisionNonESSamp.frag",