mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Validate layouts
This commit is contained in:
1 parent
e3ae5904ba
commit
1ddea0fdbb
3 files changed
+218
-43
No files matched your search
@@ -487,7 +487,10 @@ impl super::Validator {
|
||||
}
|
||||
|
||||
for (index, argument) in fun.arguments.iter().enumerate() {
|
||||
if !self.type_flags[argument.ty.index()].contains(TypeFlags::DATA) {
|
||||
if !self.types[argument.ty.index()]
|
||||
.flags
|
||||
.contains(TypeFlags::DATA)
|
||||
{
|
||||
return Err(FunctionError::InvalidArgumentType {
|
||||
index,
|
||||
name: argument.name.clone().unwrap_or_default(),
|
||||
|
||||
Reference in new issue
Block a user