mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Add support for RWTexture1DArray.
This commit is contained in:
parent
ae9d29a377
commit
2c71c18879
Notes:
Alexandre Julliard
2023-10-19 23:22:47 +02: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/419
@ -109,6 +109,7 @@ register {return KW_REGISTER; }
|
|||||||
RWBuffer {return KW_RWBUFFER; }
|
RWBuffer {return KW_RWBUFFER; }
|
||||||
RWStructuredBuffer {return KW_RWSTRUCTUREDBUFFER; }
|
RWStructuredBuffer {return KW_RWSTRUCTUREDBUFFER; }
|
||||||
RWTexture1D {return KW_RWTEXTURE1D; }
|
RWTexture1D {return KW_RWTEXTURE1D; }
|
||||||
|
RWTexture1DArray {return KW_RWTEXTURE1DARRAY; }
|
||||||
RWTexture2D {return KW_RWTEXTURE2D; }
|
RWTexture2D {return KW_RWTEXTURE2D; }
|
||||||
RWTexture3D {return KW_RWTEXTURE3D; }
|
RWTexture3D {return KW_RWTEXTURE3D; }
|
||||||
sampler {return KW_SAMPLER; }
|
sampler {return KW_SAMPLER; }
|
||||||
|
@ -4722,6 +4722,7 @@ static struct hlsl_scope *get_loop_scope(struct hlsl_scope *scope)
|
|||||||
%token KW_RWBUFFER
|
%token KW_RWBUFFER
|
||||||
%token KW_RWSTRUCTUREDBUFFER
|
%token KW_RWSTRUCTUREDBUFFER
|
||||||
%token KW_RWTEXTURE1D
|
%token KW_RWTEXTURE1D
|
||||||
|
%token KW_RWTEXTURE1DARRAY
|
||||||
%token KW_RWTEXTURE2D
|
%token KW_RWTEXTURE2D
|
||||||
%token KW_RWTEXTURE3D
|
%token KW_RWTEXTURE3D
|
||||||
%token KW_SAMPLER
|
%token KW_SAMPLER
|
||||||
@ -5547,6 +5548,10 @@ uav_type:
|
|||||||
{
|
{
|
||||||
$$ = HLSL_SAMPLER_DIM_1D;
|
$$ = HLSL_SAMPLER_DIM_1D;
|
||||||
}
|
}
|
||||||
|
| KW_RWTEXTURE1DARRAY
|
||||||
|
{
|
||||||
|
$$ = HLSL_SAMPLER_DIM_1DARRAY;
|
||||||
|
}
|
||||||
| KW_RWTEXTURE2D
|
| KW_RWTEXTURE2D
|
||||||
{
|
{
|
||||||
$$ = HLSL_SAMPLER_DIM_2D;
|
$$ = HLSL_SAMPLER_DIM_2D;
|
||||||
@ -5697,6 +5702,7 @@ type_no_void:
|
|||||||
{
|
{
|
||||||
case HLSL_SAMPLER_DIM_BUFFER:
|
case HLSL_SAMPLER_DIM_BUFFER:
|
||||||
case HLSL_SAMPLER_DIM_1D:
|
case HLSL_SAMPLER_DIM_1D:
|
||||||
|
case HLSL_SAMPLER_DIM_1DARRAY:
|
||||||
case HLSL_SAMPLER_DIM_2D:
|
case HLSL_SAMPLER_DIM_2D:
|
||||||
case HLSL_SAMPLER_DIM_3D:
|
case HLSL_SAMPLER_DIM_3D:
|
||||||
if ($3->class == HLSL_CLASS_ARRAY)
|
if ($3->class == HLSL_CLASS_ARRAY)
|
||||||
|
@ -181,7 +181,7 @@ float4 main() : sv_target1
|
|||||||
}
|
}
|
||||||
|
|
||||||
% RWTexture1DArray types
|
% RWTexture1DArray types
|
||||||
[pixel shader fail(sm>=6) todo]
|
[pixel shader fail(sm>=6)]
|
||||||
struct s
|
struct s
|
||||||
{
|
{
|
||||||
float3 a;
|
float3 a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user