When trying to compile a mesh shader, where 2 entry points exist and one of them is called inside another, dxcompiler.dll throws an exception. Specifically, exception is happening when function which have indices parameter modifier is called.
Steps to Reproduce
Compile this code with arguments -E MSMain -T ms_6_5 -spirv. This will result in exception. If delete indices from MSMainCalled declaration, compilation will succeed.
Actual BehaviorException thrown at 0x00007FFDC9B7D034 (dxcompiler.dll) in Application.exe: 0xC0000005: Access violation reading location 0x000000000000005C.
Description
When trying to compile a mesh shader, where 2 entry points exist and one of them is called inside another,
dxcompiler.dll
throws an exception. Specifically, exception is happening when function which haveindices
parameter modifier is called.Steps to Reproduce Compile this code with arguments
-E MSMain -T ms_6_5 -spirv
. This will result in exception. If deleteindices
fromMSMainCalled
declaration, compilation will succeed.https://godbolt.org/z/1Tboc87rd
Actual Behavior
Exception thrown at 0x00007FFDC9B7D034 (dxcompiler.dll) in Application.exe: 0xC0000005: Access violation reading location 0x000000000000005C.
Environment