[valid] Handle texture/sampler function argument

This commit is contained in:
João Capucho authored and Dzmitry Malyshau committed 2021-07-01 11:19:28 -04:00
1 parent f98b4e2f48
commit 7df4a52af9
6 files changed
+244 -58

No files matched your search

+1 -1
View File
@@ -578,7 +578,7 @@ impl super::Validator {
for (index, argument) in fun.arguments.iter().enumerate() {
if !self.types[argument.ty.index()]
.flags
.contains(TypeFlags::DATA | TypeFlags::SIZED)
.contains(TypeFlags::ARGUMENT)
{
return Err(FunctionError::InvalidArgumentType {
index,