Module: vkd3d Branch: master Commit: e1c759e1c9d7c275677fe7155fd548410b85ac9d URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/e1c759e1c9d7c275677fe7155fd548...
Author: Francisco Casas fcasas@codeweavers.com Date: Wed Jan 31 20:08:00 2024 -0300
vkd3d-shader/hlsl: Record valid methods in object_methods[].
Also, call hlsl_sampler_dim_count() and hlsl_offset_dim_count() after type checking, to avoid reaching unreacheable cases.
---
libs/vkd3d-shader/hlsl.h | 7 ++-- libs/vkd3d-shader/hlsl.y | 105 +++++++++++++++++++++-------------------------- 2 files changed, 50 insertions(+), 62 deletions(-)