[vulkan] Generate correct parse data for size_t

Fixes a segfault when parsing specialization map data.
This commit is contained in:
Bill Currie 2021-01-23 20:39:09 +09:00
parent 8224169394
commit 4283d690ad

View file

@ -137,9 +137,12 @@
id enumObj = [(id) Hash_Find (available_types, name) resolveType]; id enumObj = [(id) Hash_Find (available_types, name) resolveType];
return [enumObj parseData]; return [enumObj parseData];
} }
if (name == "uint32_t" || name == "size_t") { if (name == "uint32_t") {
return "0"; return "0";
} }
if (name == "size_t") {
return "&cexpr_size_t";
}
return [alias parseData]; return [alias parseData];
} }
@end @end