HLSL: More robust handling of bad shader input, catching a few more things.

This commit is contained in:
John Kessenich
2016-12-14 17:02:32 -07:00
parent dca93d6baa
commit 1e275c8486
6 changed files with 82 additions and 74 deletions

View File

@@ -26,6 +26,7 @@ void main(out PS_OUTPUT ps_output)
{
// local array sized from initializers
float l_array[] = { 1, 2, 3 };
int idx;
ps_output.color = g_array[0] + g_array[4] + l_array[1] + g_mystruct[0].f + g_array[idx];
}