mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/fx: Set UAV count in the header.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
1a79d1e945
commit
3c6470e3b2
Notes:
Alexandre Julliard
2024-05-08 22:49:51 +02:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/802
@ -90,6 +90,7 @@ struct fx_write_context
|
||||
uint32_t dsv_count;
|
||||
uint32_t rtv_count;
|
||||
uint32_t texture_count;
|
||||
uint32_t uav_count;
|
||||
int status;
|
||||
|
||||
bool child_effect;
|
||||
@ -1029,6 +1030,7 @@ static void write_fx_4_object_variable(struct hlsl_ir_var *var, struct fx_write_
|
||||
fx->texture_count += elements_count;
|
||||
break;
|
||||
case HLSL_CLASS_UAV:
|
||||
fx->uav_count += elements_count;
|
||||
break;
|
||||
|
||||
case HLSL_CLASS_PIXEL_SHADER:
|
||||
@ -1263,7 +1265,7 @@ static int hlsl_fx_5_write(struct hlsl_ctx *ctx, struct vkd3d_shader_code *out)
|
||||
put_u32(&buffer, fx.shader_count);
|
||||
put_u32(&buffer, 0); /* Inline shader count. */
|
||||
put_u32(&buffer, fx.group_count); /* Group count. */
|
||||
put_u32(&buffer, 0); /* UAV count. */
|
||||
put_u32(&buffer, fx.uav_count);
|
||||
put_u32(&buffer, 0); /* Interface variables count. */
|
||||
put_u32(&buffer, 0); /* Interface variable element count. */
|
||||
put_u32(&buffer, 0); /* Class instance elements count. */
|
||||
|
Loading…
Reference in New Issue
Block a user