HLSL: Handle "fake" entry points, by undoing their built-in variable declarations.

This commit is contained in:
John Kessenich
2016-09-02 20:23:27 -06:00
parent 9e079535a0
commit 07350f3382
6 changed files with 138 additions and 1 deletions

11
Test/hlsl.multiEntry.vert Executable file
View 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);
}