Module: vkd3d Branch: master Commit: 15a0b44adacdfc050fc7cde2f167e00e049c7066 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/15a0b44adacdfc050fc7cde2f167e0... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Mon Sep 26 18:20:22 2022 -0500 vkd3d-shader/hlsl: Pass the arguments to hlsl_new_resource_load() as an indirect structure. The function has far too many arguments, including multiple different arguments with the same type. Use a structure for clarity and to avoid errors. Merge hlsl_new_sample_lod() into hlsl_new_resource_load() accordingly. --- libs/vkd3d-shader/hlsl.c | 30 ++++++-------------- libs/vkd3d-shader/hlsl.h | 17 ++++++----- libs/vkd3d-shader/hlsl.y | 73 +++++++++++++++++++++++++----------------------- 3 files changed, 57 insertions(+), 63 deletions(-)