mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Add support for writing RWStructuredBuffer declarations.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
3de824bfd8
commit
cff22ecde8
Notes:
Alexandre Julliard
2023-05-22 23:19:48 +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/193
@@ -4147,6 +4147,7 @@ static void validate_texture_format_type(struct hlsl_ctx *ctx, struct hlsl_type
|
||||
%token KW_REGISTER
|
||||
%token KW_ROW_MAJOR
|
||||
%token KW_RWBUFFER
|
||||
%token KW_RWSTRUCTUREDBUFFER
|
||||
%token KW_RWTEXTURE1D
|
||||
%token KW_RWTEXTURE2D
|
||||
%token KW_RWTEXTURE3D
|
||||
@@ -4960,6 +4961,10 @@ uav_type:
|
||||
{
|
||||
$$ = HLSL_SAMPLER_DIM_BUFFER;
|
||||
}
|
||||
| KW_RWSTRUCTUREDBUFFER
|
||||
{
|
||||
$$ = HLSL_SAMPLER_DIM_STRUCTURED_BUFFER;
|
||||
}
|
||||
| KW_RWTEXTURE1D
|
||||
{
|
||||
$$ = HLSL_SAMPLER_DIM_1D;
|
||||
|
||||
Reference in New Issue
Block a user