mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Store the matrix majority as a type modifiers bitmask.
This commit is contained in:
committed by
Alexandre Julliard
parent
b3c620954b
commit
75ab9d31ef
Notes:
Alexandre Julliard
2023-02-28 22:10:58 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/102
@@ -233,14 +233,14 @@ row_major {return KW_ROW_MAJOR; }
|
||||
struct hlsl_ctx *ctx = yyget_extra(yyscanner);
|
||||
|
||||
TRACE("#pragma setting row_major mode.\n");
|
||||
ctx->matrix_majority = HLSL_ROW_MAJOR;
|
||||
ctx->matrix_majority = HLSL_MODIFIER_ROW_MAJOR;
|
||||
BEGIN(pp_ignore);
|
||||
}
|
||||
<pp_pragma>pack_matrix{WS}*\({WS}*column_major{WS}*\) {
|
||||
struct hlsl_ctx *ctx = yyget_extra(yyscanner);
|
||||
|
||||
TRACE("#pragma setting column_major mode.\n");
|
||||
ctx->matrix_majority = HLSL_COLUMN_MAJOR;
|
||||
ctx->matrix_majority = HLSL_MODIFIER_COLUMN_MAJOR;
|
||||
BEGIN(pp_ignore);
|
||||
}
|
||||
<pp_pragma>{NEWLINE} {
|
||||
|
||||
Reference in New Issue
Block a user