HLSL: Handle "fake" entry points, by undoing their built-in variable declarations.
This commit is contained in:
parent
9e079535a0
commit
07350f3382
6 changed files with 138 additions and 1 deletions
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue