HLSL: Handle "fake" entry points, by undoing their built-in variable declarations.
This commit is contained in:
11
Test/hlsl.multiEntry.vert
Executable file
11
Test/hlsl.multiEntry.vert
Executable file
@@ -0,0 +1,11 @@
|
||||
Buffer<float4> Position;
|
||||
|
||||
float4 FakeEntrypoint(uint Index : SV_VERTEXID) : SV_POSITION
|
||||
{
|
||||
return Position.Load(Index);
|
||||
}
|
||||
|
||||
float4 RealEntrypoint(uint Index : SV_VERTEXID) : SV_POSITION
|
||||
{
|
||||
return FakeEntrypoint(Index);
|
||||
}
|
||||
Reference in New Issue
Block a user