0 Replies Latest reply on Apr 14, 2011 12:09 PM by stopiccot

    Sample Texture2DArray in vertex shader

    stopiccot
      howto?

      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?