Module: vkd3d Branch: master Commit: 98def3214bd373d086a19794c8150158583ed052 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/98def3214bd373d086a19794c81501...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Fri Jun 7 17:32:56 2024 -0500
vkd3d-shader: Introduce struct vkd3d_shader_parameter_info and struct vkd3d_shader_parameter1.
As the newly added documentation describes, this reroll serves two purposes:
* to allow shader parameters to be used for any target type (which allows using parameters for things like Direct3D 8-9 alpha test),
* to allow the union in struct vkd3d_shader_parameter to contain types larger than 32 bits (by specifying them indirectly through a pointer).
---
include/vkd3d_shader.h | 58 +++++++++++++++++++++++++++ libs/vkd3d-shader/d3dbc.c | 2 +- libs/vkd3d-shader/dxil.c | 11 +++--- libs/vkd3d-shader/hlsl_codegen.c | 2 +- libs/vkd3d-shader/ir.c | 68 +++++++++++++++++++++++++++++++- libs/vkd3d-shader/spirv.c | 16 +++++--- libs/vkd3d-shader/tpf.c | 8 ++-- libs/vkd3d-shader/vkd3d_shader_private.h | 7 +++- 8 files changed, 153 insertions(+), 19 deletions(-)