https://bugs.winehq.org/show_bug.cgi?id=54832
Bug ID: 54832 Summary: Dereference with non-constant offset of type HLSL_IR_EXPR Product: vkd3d Version: 1.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: flibitijibibo@gmail.com Distribution: ---
Created attachment 74335 --> https://bugs.winehq.org/attachment.cgi?id=74335 EG2 Vertex Shader
MojoShader uses this for arrays, as an example:
--- float4 uniforms_float4[13]; int4 m_v6 : BLENDINDICES0;
const int ARRAYBASE_8 = 0; a0.x = int(floor(abs(v6.x) + 0.5) * sign(v6.x)); r0.xy = lerp(v1.xy, v1.zw, uniforms_float4[ARRAYBASE_8 + a0.x].xy); ---
A complete example from Escape Goat 2 is attached, but this shader depends on #54826 getting fixed first.