vkd3d-shader/hlsl: Error out when a semantic is used with incompatible types.

Considering row vectors from row_major matrices as having a different
layout as regular vectors, and error out in that case, is left as todo.
This commit is contained in:
Francisco Casas
2023-04-12 16:27:31 -04:00
committed by Alexandre Julliard
parent d96e9665b1
commit 537d7c27a2
Notes: Alexandre Julliard 2023-05-01 22:24:44 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/148
4 changed files with 42 additions and 3 deletions

View File

@@ -215,6 +215,10 @@ struct hlsl_semantic
/* In case the variable or field that stores this semantic has already reported to use a
* duplicated output semantic, this value stores the last reported index + 1. Otherwise it is 0. */
uint32_t reported_duplicated_output_next_index;
/* In case the variable or field that stores this semantic has already reported to use a
* duplicated input semantic with incompatible values, this value stores the last reported
* index + 1. Otherwise it is 0. */
uint32_t reported_duplicated_input_incompatible_next_index;
};
/* A field within a struct type declaration, used in hlsl_type.e.fields. */