blob: 6bf4bfb894e5453ad7042f2be84f544ee9168e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//TEST:SIMPLE(filecheck=SPIRV): -entry VertexMain -stage vertex -target spirv -preserve-params
//TEST:SIMPLE(filecheck=SPIRV): -entry VertexMain -stage vertex -target spirv -emit-spirv-directly -preserve-params
// Test for https://github.com/shader-slang/slang/issues/7689
// SV_VertexID combined with -preserve-params should not crash
// SPIRV: OpEntryPoint
[shader("vertex")]
float4 VertexMain(uint vertexId: SV_VertexID, uint instanceId: SV_InstanceID) : SV_Position
{
return float4(0.0);
}
|