mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Handle 'linear centroid' modifier.
This commit is contained in:
committed by
Alexandre Julliard
parent
10957bebbf
commit
6a4a9a4518
Notes:
Alexandre Julliard
2023-11-28 00:13:17 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/496
@@ -4893,6 +4893,7 @@ static void check_duplicated_switch_cases(struct hlsl_ctx *ctx, const struct hls
|
||||
%token KW_IN
|
||||
%token KW_INLINE
|
||||
%token KW_INOUT
|
||||
%token KW_LINEAR
|
||||
%token KW_MATRIX
|
||||
%token KW_NAMESPACE
|
||||
%token KW_NOINTERPOLATION
|
||||
@@ -6262,6 +6263,10 @@ var_modifiers:
|
||||
{
|
||||
$$ = add_modifiers(ctx, $2, HLSL_STORAGE_CENTROID, &@1);
|
||||
}
|
||||
| KW_LINEAR var_modifiers
|
||||
{
|
||||
$$ = add_modifiers(ctx, $2, HLSL_STORAGE_LINEAR, &@1);
|
||||
}
|
||||
| KW_NOPERSPECTIVE var_modifiers
|
||||
{
|
||||
$$ = add_modifiers(ctx, $2, HLSL_STORAGE_NOPERSPECTIVE, &@1);
|
||||
|
||||
Reference in New Issue
Block a user