Add test case for read-only storage texture passed to helper function (#2414)
authorDavid Neto <dneto@google.com>
Wed, 7 Oct 2020 22:10:27 +0000 (18:10 -0400)
committerGitHub <noreply@github.com>
Wed, 7 Oct 2020 22:10:27 +0000 (16:10 -0600)
commit2067d1a93e6edc17f2a6b7e3e5138a9bbcd35ef9
tree655c251f6e7243bb6657bb8e2d2249cf57c5bb8b
parent3ce148638bdc3807316e358dee4a5c9583189ae7
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.
Test/baseResults/spv.paramMemory.420.frag.out [new file with mode: 0644]
Test/spv.paramMemory.420.frag [new file with mode: 0644]
gtests/Spv.FromFile.cpp