21 Apr
2023
21 Apr
'23
10:49 a.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.y:
return true; }
+static bool add_sample_bias_method_call(struct hlsl_ctx *ctx, struct list *instrs, struct hlsl_ir_node *object, + const char *name, const struct parse_initializer *params, const struct vkd3d_shader_location *loc)
This is identical to `add_sample_level_method_call()` except for a handful of lines. Maybe the code can be shared? (I'd say there is also ground for sharing code between `add_sample_method_call()` and `add_sample_level_method_call()`, but that's another issue) -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/172#note_30847