Hi, I need to use the tex2Dgrad() and I just used it in D3D9 + SM3 when we can easily write the following code in effect file:
sampler HeightSampler =
sampler_state
{
Texture =(HeightTexture) ;
MipFilter = LINEAR;
MinFilter = LINEAR;
MagFilter = LINEAR;
};
then we can call tex2Dgrad in this way:
tex2Dgrad(HeightSampler, MovedTex, dx, dy);
How can we get such a sampler state object in SM5 then?