vkd3d-shader: Make *src and *dst mutable in vkd3d_shader_instruction.

They were originally made const because no optimization/normalization
pass existed. Now having to cast away const all the time is becoming
more and more burdening.
This commit is contained in:
Giovanni Mascellani
2024-01-11 11:19:39 +01:00
committed by Alexandre Julliard
parent fd8a0d7fb6
commit 78d95889bd
Notes: Alexandre Julliard 2024-01-11 23:14:32 +01: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/554
3 changed files with 10 additions and 13 deletions

View File

@@ -1126,8 +1126,8 @@ struct vkd3d_shader_instruction
uint32_t flags;
unsigned int dst_count;
unsigned int src_count;
const struct vkd3d_shader_dst_param *dst;
const struct vkd3d_shader_src_param *src;
struct vkd3d_shader_dst_param *dst;
struct vkd3d_shader_src_param *src;
struct vkd3d_shader_texel_offset texel_offset;
enum vkd3d_shader_resource_type resource_type;
unsigned int resource_stride;