https://bugs.winehq.org/show_bug.cgi?id=55428
Bug ID: 55428 Summary: MIssing support for "if" statement attributes Product: vkd3d Version: 1.8 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: bunglehead@gmail.com Distribution: ---
Created attachment 74990 --> https://bugs.winehq.org/attachment.cgi?id=74990 test
Spider-Man: Shattered Dimensions fails to compile attached shader:
--- 03b8:trace:d3dcompiler:D3DCompile data 090FE2C0, data_size 15602, filename (null), defines 00000000, include 00000000, entrypoint "PixelShaderMain", target "ps_3_0", sflags 0x8, eflags 0, shader 090EE26C, error_messages 090EE270. 03b8:trace:d3dcompiler:D3DCompile2 data 090FE2C0, data_size 15602, filename (null), macros 00000000, include 00000000, entry_point "PixelShaderMain", profile "ps_3_0", flags 0x8, effect_flags 0, secondary_flags 0, secondary_data 00000000, secondary_data_size 0, shader_blob 090EE26C, messages_blob 090EE270. 03b8:fixme:d3dcompiler:D3DCompile2 Ignoring flags 0x8. 03b8:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 03b8:err:d3dcompiler:D3DCompile2 Shader log: 03b8:err:d3dcompiler:D3DCompile2 <anonymous>:187:1: E5000: syntax error, unexpected '[' 03b8:err:d3dcompiler:D3DCompile2 ---
This needs support for both [flatten] and [branch] attributes.