Merge pull request #538 from steve-lunarg/iomap-binding-range-err
Check for out-of-range bindings during IO mapping.
This commit is contained in:
12
Test/baseResults/spv.register.autoassign.rangetest.frag.out
Normal file
12
Test/baseResults/spv.register.autoassign.rangetest.frag.out
Normal 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
|
||||
15
Test/spv.register.autoassign.rangetest.frag
Normal file
15
Test/spv.register.autoassign.rangetest.frag
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user