Check for out-of-range bindings during IO mapping.

This commit is contained in:
steve-lunarg
2016-10-05 13:40:13 -06:00
parent c056adcddd
commit 9ae34742cf
7 changed files with 72 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
spv.register.autoassign.rangetest.frag
Linked fragment stage:
INTERNAL ERROR: mapped binding out of range: g_tScene
INTERNAL ERROR: mapped binding out of range: g_tSamp
INTERNAL ERROR: mapped binding out of range: g_tScene
INTERNAL ERROR: mapped binding out of range: g_tSamp
INTERNAL ERROR: mapped binding out of range: g_tSamp
INTERNAL ERROR: mapped binding out of range: g_tScene
SPIR-V is not generated for failed compile or link

View File

@@ -0,0 +1,15 @@
SamplerState g_tSamp : register(s5);
Texture2D g_tScene[2] : register(t5);
struct PS_OUTPUT
{
float4 Color : SV_Target0;
};
void main(out PS_OUTPUT psout)
{
psout.Color = g_tScene[0].Sample(g_tSamp, 0.3) +
g_tScene[1].Sample(g_tSamp, 0.3);
}