I want to do some texture samples in the vertex shader, but it seems this cannot be done in the same was as when using the Pixel shader.

The code is basically..

Texture2DArray   gTexture;

VS()
{
gTexture.Sample(samPoint, float3(x, y, z)
}

PS()
{
gTexture.Sample(samPoint, float3(x, y, z)
}

technique11 main
{
pass P0
{
}
}


The PS() will compile and work fine but I also need to do this sort of thing in VS().

When putting this code in the VS() I get: Error X4532 cannot map expression to vs_4_0 instruction set ....

I have done some googling and it looks like you can sample a texture in the VS but I cant get enough detail together to make this work.

Any help on this would be good.

Just for reference: I am using DirectX11 VS2015