-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML built_in for structs is unclear #269
Comments
to be clear on the issue, can you give an example?
Are you talking about the string output printed if you run |
In the test YAML files: built_in: 0, 1, 3, 4 # [Position, PointSize, ClipDistance, CullDistance] Here's the part that generates it: // SpvBuiltIn built_in;
os << t1 << "built_in: ";
if (iv.decoration_flags & SPV_REFLECT_DECORATION_BLOCK) {
for (uint32_t i = 0; i < iv.member_count; i++) {
os << iv.members[i].built_in;
if (i < (iv.member_count - 1)) {
os << ", ";
}
}
} else {
os << iv.built_in;
}
os << " # " << ToStringSpvBuiltIn(iv, false) << std::endl; |
So the I guess what would you think the correct output should be instead of
|
The ids and labels are okay (but the current format isn't a list of ints, it's a string node). I'm confused about member built_in values leaking into the parent structure. The members are IVs themselves and carry their own now: built_in: 0, 1, 3, 4 better: built_in: [0, 1, 3, 4] best: 😄 |
For individual members it can be one of the SPIRV builtins. But for structures it turns into a CSV-string with ids 🤯
Either it should be a proper array, or a
null
, since there are no built-in structures (I hope).The text was updated successfully, but these errors were encountered: