HLSL: More robust handling of bad shader input, catching a few more things.
This commit is contained in:
parent
dca93d6baa
commit
1e275c8486
6 changed files with 82 additions and 74 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue