Open chaoticbob opened 5 months ago
I got a wrong impression that the report was about a regression. But the issue can be reproduced with a build in March 2024.
Removing the regression label.
This turned to be more of the inheritance problem that was pointed out on the other issues. When I ran the following shader, it didn't have any problem.
struct Base {
float4 a : AAA;
float4 pos: SV_Position;
float4 b : BBB;
};
[maxvertexcount(2)]
void main(in line Base inData[2], inout LineStream<Base> outData)
{
outData.Append(inData[0]);
outData.RestartStrip();
}
@swoods-nv I think we should close this for now and keep track it as a long term task, "Implement inheritance".
The shader below triggers an assert in
slang-ir-glsl-legalize.cpp:createGLSLGlobalVaryingsImpl()
at 3 calls:CMD
Assert is at line 1678 using commit c3c1cb6776eacdc01ea5bc197b635471960994e4. I don't know enough about this part of the code to attempt a walk up the call stack to see where it's originating.
Shader