21 Aug
2023
21 Aug
'23
1:26 p.m.
```diff - assert(src->swizzle == VKD3D_SHADER_NO_SWIZZLE && src->reg.type == VKD3DSPR_IMMCONST); + assert(src->swizzle == VKD3D_SHADER_SWIZZLE(X, X, X, X) && src->reg.type == VKD3DSPR_IMMCONST); ```
Actually, I don't think we can make this assertion either? It's not entirely a new issue, of course, be AFAIK there's nothing in the frontends that enforces VKD3DSIH_CASE takes a VKD3DSPR_IMMCONST source, and this MR is removing the fixed VKD3D_SHADER_NO_SWIZZLE swizzle for immediate constants. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/225#note_42871