HLSL: Fix #606: make layout() override register.

This commit is contained in:
John Kessenich
2017-12-06 08:17:21 -07:00
parent cc951f8183
commit 471bfed062
4 changed files with 119 additions and 2 deletions

View 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));
}