vkd3d-shader/hlsl: Add keyword tokens for fx_5_0 shader object types.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-02-23 00:51:20 +01:00 committed by Alexandre Julliard
parent 5082893e5d
commit 5edbccd33b
Notes: Alexandre Julliard 2024-03-06 23:29:49 +01: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/676
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,7 @@ case {return KW_CASE; }
cbuffer {return KW_CBUFFER; } cbuffer {return KW_CBUFFER; }
centroid {return KW_CENTROID; } centroid {return KW_CENTROID; }
column_major {return KW_COLUMN_MAJOR; } column_major {return KW_COLUMN_MAJOR; }
ComputeShader {return KW_COMPUTESHADER; }
compile {return KW_COMPILE; } compile {return KW_COMPILE; }
const {return KW_CONST; } const {return KW_CONST; }
continue {return KW_CONTINUE; } continue {return KW_CONTINUE; }
@ -83,6 +84,7 @@ DepthStencilState {return KW_DEPTHSTENCILSTATE; }
DepthStencilView {return KW_DEPTHSTENCILVIEW; } DepthStencilView {return KW_DEPTHSTENCILVIEW; }
default {return KW_DEFAULT; } default {return KW_DEFAULT; }
discard {return KW_DISCARD; } discard {return KW_DISCARD; }
DomainShader {return KW_DOMAINSHADER; }
do {return KW_DO; } do {return KW_DO; }
double {return KW_DOUBLE; } double {return KW_DOUBLE; }
else {return KW_ELSE; } else {return KW_ELSE; }
@ -92,6 +94,7 @@ for {return KW_FOR; }
fxgroup {return KW_FXGROUP; } fxgroup {return KW_FXGROUP; }
GeometryShader {return KW_GEOMETRYSHADER; } GeometryShader {return KW_GEOMETRYSHADER; }
groupshared {return KW_GROUPSHARED; } groupshared {return KW_GROUPSHARED; }
HullShader {return KW_HULLSHADER; }
if {return KW_IF; } if {return KW_IF; }
in {return KW_IN; } in {return KW_IN; }
inline {return KW_INLINE; } inline {return KW_INLINE; }

View File

@ -5243,6 +5243,7 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
%token KW_CENTROID %token KW_CENTROID
%token KW_COLUMN_MAJOR %token KW_COLUMN_MAJOR
%token KW_COMPILE %token KW_COMPILE
%token KW_COMPUTESHADER
%token KW_CONST %token KW_CONST
%token KW_CONTINUE %token KW_CONTINUE
%token KW_DEFAULT %token KW_DEFAULT
@ -5250,6 +5251,7 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
%token KW_DEPTHSTENCILVIEW %token KW_DEPTHSTENCILVIEW
%token KW_DISCARD %token KW_DISCARD
%token KW_DO %token KW_DO
%token KW_DOMAINSHADER
%token KW_DOUBLE %token KW_DOUBLE
%token KW_ELSE %token KW_ELSE
%token KW_EXTERN %token KW_EXTERN
@ -5258,6 +5260,7 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
%token KW_FXGROUP %token KW_FXGROUP
%token KW_GEOMETRYSHADER %token KW_GEOMETRYSHADER
%token KW_GROUPSHARED %token KW_GROUPSHARED
%token KW_HULLSHADER
%token KW_IF %token KW_IF
%token KW_IN %token KW_IN
%token KW_INLINE %token KW_INLINE