mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[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:
parent
403c6eea73
commit
97b2f2afb0
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue