cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

stopiccot
Journeyman III

Sample Texture2DArray in vertex shader

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?

 

0 Likes
0 Replies