https://bugs.winehq.org/show_bug.cgi?id=57770
Bug ID: 57770 Summary: Hearts of Iron IV requires 'WorldMatrix' identifier Product: vkd3d Version: 1.14 Hardware: x86-64 OS: Linux Status: NEW Severity: minor Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
Using DX9 (legacy)
0384:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0384:err:d3dcompiler:D3DCompile2 Shader log: 0384:err:d3dcompiler:D3DCompile2 memory:433:47: E5005: Identifier "WorldMatrix" is not declared.
1.14-345-gf1412e42
https://bugs.winehq.org/show_bug.cgi?id=57770
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- That's almost certainly not a builtin identifier, and neither are the identifiers in 57771, 57772, 57773.
I also don't see anything we could be doing wrong here. When trying to compile with the same shader that's passed to us I get a similar failure with native.
Are you sure that these shaders actually correctly compile on native? Are there any clear graphical errors? I don't see any.
https://bugs.winehq.org/show_bug.cgi?id=57770
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com --- Right, they are in 'pdxmesh.shader' file in '../Hearts of Iron IV/glx/FX'
Also getting lines 'E5002: Can't implicitly convert from <error type> to float.' 'E5002: Can't implicitly convert from <error type> to float4.' 'E5002: Can't implicitly convert from <error type> to float4x4.'
so might be this is not just about identifier itself.
https://bugs.winehq.org/show_bug.cgi?id=57770
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- The shader it passes in seems to be manually preprocessed (not using the HLSL preprocessor), and also broken. I think it makes sense to close this bug and the others unless there's clear evidence that it's *supposed* to compile.