5 Jul
2023
5 Jul
'23
10:04 a.m.
Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl_constant_ops.c:
return true; }
+static bool fold_sqrt(struct hlsl_ctx *ctx, struct hlsl_constant_value *dst, const struct hlsl_type *dst_type, + const struct hlsl_ir_constant *src, const struct vkd3d_shader_location *loc) +{ + enum hlsl_base_type type = dst_type->base_type; + unsigned int k; + + assert(type == src->node.data_type->base_type); + + for (k = 0; k < 4; ++k)
Notice that we use `dimx` here since 717cd3f5bbbfdad8e3b3c03485625ac1a95ccf20. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/265#note_37966