Skip to content

Commit b5b39f6

Browse files
teoxoyErichDonGubler
authored andcommitted
remove redundant code in module interface validation
`TypeInner.size()` already handles the array case
1 parent 89a0ebf commit b5b39f6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

wgpu-core/src/validation.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,6 @@ impl Interface {
915915
class,
916916
},
917917
naga::TypeInner::Sampler { comparison } => ResourceType::Sampler { comparison },
918-
naga::TypeInner::Array { stride, size, .. } => {
919-
let size = match size {
920-
naga::ArraySize::Constant(size) => size.get() * stride,
921-
naga::ArraySize::Dynamic => stride,
922-
};
923-
ResourceType::Buffer {
924-
size: wgt::BufferSize::new(size as u64).unwrap(),
925-
}
926-
}
927918
ref other => ResourceType::Buffer {
928919
size: wgt::BufferSize::new(other.size(module.to_ctx()) as u64).unwrap(),
929920
},

0 commit comments

Comments
 (0)