On Tue Mar 26 18:08:06 2024 +0000, Zebediah Figura wrote:
This is not related to how this should be parsed though.
Not as such. That said, if there were evidence that "SrcBlend[0]" behaved exactly like "SrcBlend", that would imply we don't even need a has_index field.
Didn't your test confirm that it doesn't? For this particular field, it's a change in d3d10.1 that added per-target values. But anyway, this does not concern the parsing part at all, we'll emit errors only for fx profiles. For regular profiles validity of field name or index bounds are not validated. Regarding has_index, we probably need something like that unfortunately, because index limits are [0,4294967295]. We could still use -1 as special value, because actual limits will be lower, but it will be less readable I suspect.