Add missing pointer handling to runtime reflection (#2353)

This commit is contained in:
Rua 2023-10-08 09:39:09 +02:00 committed by GitHub
parent 6f0065b222
commit 518369e7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1084,6 +1084,7 @@ fn size_of_type(spirv: &Spirv, id: Id) -> Option<DeviceSize> {
assert!(width % 8 == 0);
Some(width as DeviceSize / 8)
}
Instruction::TypePointer { .. } => Some(8),
Instruction::TypeVector {
component_type,
component_count,