mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
[valid] Handle texture/sampler function argument
This commit is contained in:
1 parent
f98b4e2f48
commit
7df4a52af9
6 files changed
+244
-58
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user