mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-11 02:00:51 +00:00
[vkgen] Handle int32_t correctly
I'm not sure why parse_basic doesn't work for int, but I'm not too worried about it right now.
This commit is contained in:
parent
fdeb294c58
commit
154d1cbfcb
1 changed files with 7 additions and 0 deletions
|
@ -80,6 +80,9 @@
|
||||||
if (name == "bool") {
|
if (name == "bool") {
|
||||||
return "cexpr_bool";
|
return "cexpr_bool";
|
||||||
}
|
}
|
||||||
|
if (name == "int32_t") {
|
||||||
|
return "cexpr_int";
|
||||||
|
}
|
||||||
if (name == "uint32_t") {
|
if (name == "uint32_t") {
|
||||||
return "cexpr_uint";
|
return "cexpr_uint";
|
||||||
}
|
}
|
||||||
|
@ -108,6 +111,7 @@
|
||||||
case "VkBool32":
|
case "VkBool32":
|
||||||
id enumObj = [(id) Hash_Find (available_types, name) resolveType];
|
id enumObj = [(id) Hash_Find (available_types, name) resolveType];
|
||||||
return [enumObj parseType];
|
return [enumObj parseType];
|
||||||
|
case "int32_t":
|
||||||
case "uint32_t":
|
case "uint32_t":
|
||||||
case "size_t":
|
case "size_t":
|
||||||
case "vec4f_t":
|
case "vec4f_t":
|
||||||
|
@ -135,6 +139,8 @@
|
||||||
return [enumObj parseFunc];
|
return [enumObj parseFunc];
|
||||||
case "bool":
|
case "bool":
|
||||||
return "parse_enum";
|
return "parse_enum";
|
||||||
|
case "int32_t":
|
||||||
|
return "parse_int32_t";
|
||||||
case "uint32_t":
|
case "uint32_t":
|
||||||
return "parse_uint32_t";
|
return "parse_uint32_t";
|
||||||
}
|
}
|
||||||
|
@ -157,6 +163,7 @@
|
||||||
case "VkBool32":
|
case "VkBool32":
|
||||||
id enumObj = [(id) Hash_Find (available_types, name) resolveType];
|
id enumObj = [(id) Hash_Find (available_types, name) resolveType];
|
||||||
return [enumObj parseData];
|
return [enumObj parseData];
|
||||||
|
case "int32_t":
|
||||||
case "uint32_t":
|
case "uint32_t":
|
||||||
return "0";
|
return "0";
|
||||||
case "bool":
|
case "bool":
|
||||||
|
|
Loading…
Reference in a new issue