Test out-of-bounds descriptor access in D3D12 indexing test

This commit is contained in:
baldurk
2022-11-18 12:24:05 +00:00
parent de2d6e7be9
commit 5aae46a86e
@@ -102,7 +102,11 @@ float4 main(v2f IN) : SV_Target0
for(int i=0; i < 100; i++)
{
tex_ref t = buf[i];
if(t.tex == 100) break;
if(t.tex == 100)
{
ret += texArray1[t.binding*100].SampleLevel(s, uv.xy, 0);
break;
}
if(t.tex == 0)
{