Sample Texture2DArray in vertex shader

Discussion created by stopiccot on Apr 14, 2011

Hi guys. I need to sample texture array in vertex shader. For normal textures I simply use SampleLevel(sampler, float2, float); instead of Sample(sampler, float2); and everything works. But when I use SampleLevel(sampler, float3, float) instead of Sample(sampler, float3); for texure array I get an error:

error X4532: cannor map experssion to vs_4_0 instruction set.

Any ideas what I may be doing wrong?