hi All !

I would like to create a float array in my hlsl fx file.

problem…

vvvv gives me:

**"Literal loop terminated early due to out of bounds array access X3504"**

in two words, I have 9 textures and a “master blend_coeff” which goes from 0 to 1000.

going from 0 to 1000 reveals texture 1, then 2, then 3…

here’s part of code which contains error:

```
float4 PS(vs2ps In): COLOR
{
float k[9](9);
for (int m=0;m<10;m++){
if (coeff_col>=m*111 && coeff_col<=m*(1000/9)+(1000/9)) {
k[m](m)=mapping_values(coeff_col,0,m*(1000/9)+(1000/9),0.,1.);///problem here
}
}
float4 col1 = tex2D(Samp1, In.TexCd);
float4 col2 = tex2D(Samp2, In.TexCd);
float4 col3 = tex2D(Samp3, In.TexCd);
float4 col4 = tex2D(Samp4, In.TexCd);
float4 col5 = tex2D(Samp5, In.TexCd);
float4 col6 = tex2D(Samp6, In.TexCd);
float4 col7 = tex2D(Samp7, In.TexCd);
float4 col8 = tex2D(Samp8, In.TexCd);
float4 col9 = tex2D(Samp9, In.TexCd);
float4 col=col1*k[0](0)+col2*k[1](1)+col3*k[2](2)+col4*k[3](3)+col5*k[4](4)+col6*k[5](5)+col7*k[6](6)+col8*k[7](7)+col9*k[8](8);
return col;
}
```

thanks in advance !

(just so exciting to discover the FX world of vvvv :-)

tiouss