12 Apr
2023
12 Apr
'23
9:47 p.m.
On Tue Apr 11 02:54:59 2023 +0000, Zebediah Figura wrote:
Okay, I am reporting that as an `hlsl_note()` though, since the error will be emitted by the `if (var->is_missing_semantics)` check at the level of `hlsl_emit_bytecode()`. My idea was that you'd report the error in prepend_input_var_copy() or whatever, and then you don't need the is_missing_semantics error. Okay, in v3 the error is being reported when traversing the field itself. Since a field can be traversed multiple times (say, for an array of structs), a flag it is still necessary to avoid reporting the error multiple times (`hlsl_semantic.reported_missing` in this implementation.).
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/148#note_29863