HLSL: Fix #606: make layout() override register.
This commit is contained in:
parent
cc951f8183
commit
471bfed062
4 changed files with 119 additions and 2 deletions
7
Test/hlsl.layoutOverride.vert
Normal file
7
Test/hlsl.layoutOverride.vert
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
layout(set=2,binding=0) Texture2D tex : register(t16);
|
||||
SamplerState samp;
|
||||
|
||||
float4 main() : SV_Position
|
||||
{
|
||||
return tex.Sample(samp, float2(0.2, 0.3));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue