[vkgen] Support vec4f_t fields

It's currently a bit of a hack via aliases, but it fits in with the
current support for uint32_t and size_t.
This commit is contained in:
Bill Currie 2023-02-09 14:46:50 +09:00
parent 403c6eea73
commit 97b2f2afb0

View file

@ -80,6 +80,9 @@
if (name == "uint32_t") {
return "cexpr_uint";
}
if (name == "vec4f_t") {
return "cexpr_vector";
}
if (name == "size_t") {
return "cexpr_size_t";
}
@ -102,7 +105,7 @@
id enumObj = [(id) Hash_Find (available_types, name) resolveType];
return [enumObj parseType];
}
if (name == "uint32_t" || name == "size_t") {
if (name == "uint32_t" || name == "size_t" || name == "vec4f_t") {
return "QFString";
}
return [alias parseType];
@ -149,6 +152,9 @@
if (name == "uint32_t") {
return "0";
}
if (name == "vec4f_t") {
return "&cexpr_vector";
}
if (name == "size_t") {
return "&cexpr_size_t";
}