2 Nov
2022
2 Nov
'22
3:37 p.m.
From patch 2/7: ```diff -struct hlsl_type *hlsl_type_get_component_type(struct hlsl_ctx *ctx, struct hlsl_type *type, +struct hlsl_type *hlsl_type_get_component_type(struct hlsl_ctx *ctx, const struct hlsl_type *type, unsigned int index) { while (!type_is_single_component(type)) traverse_path_from_component_index(ctx, &type, &index);
- return type; + return (struct hlsl_type *) type; } ``` This ends up casting away const, which seems undesirable. Is that really unavoidable?
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/42#note_12811