vkd3d-shader/hlsl: Add support for sample index argument in Load().

This commit is contained in:
Nikolay Sivov
2023-04-27 10:15:36 +02:00
committed by Alexandre Julliard
parent dc41444941
commit dfa0076473
Notes: Alexandre Julliard 2023-05-22 23:19:15 +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/135
6 changed files with 71 additions and 8 deletions

View File

@@ -623,7 +623,7 @@ struct hlsl_ir_resource_load
struct hlsl_ir_node node;
enum hlsl_resource_load_type load_type;
struct hlsl_deref resource, sampler;
struct hlsl_src coords, lod, texel_offset;
struct hlsl_src coords, lod, sample_index, texel_offset;
enum hlsl_sampler_dim sampling_dim;
};
@@ -825,7 +825,7 @@ struct hlsl_resource_load_params
struct hlsl_type *format;
enum hlsl_resource_load_type type;
struct hlsl_ir_node *resource, *sampler;
struct hlsl_ir_node *coords, *lod, *texel_offset;
struct hlsl_ir_node *coords, *lod, *sample_index, *texel_offset;
enum hlsl_sampler_dim sampling_dim;
};