When I try to compile I get the error:
X4505: sum of temp register and indexable temp registers exceeds limit of 4096.
However my shader does work in FX Composer.
The reason it crashes is probably because I use a very large array since I'm using marching cubes.
const static int edgeTable[256] = ...
const static int triTable[256][16] = ...
How should I go about using these arrays? (D11)