When I try to link my Geometry Shader it throws the following error:
0(76) : error C5041: cannot locate suitable resource to bind variable "triTable". Possibly large array.
In reference to this array declared in the shader:
const int triTable[256][16] =
{ { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
{ 0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
...
...
...
{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 } };
The array is quite large. Does this have to do with the array being just too big to declare within the shader, or is there some other problem?