I am trying to sample from an input texture in a vertex shader in a Direct2D effect that distorts the image by shifting vertices based on vectors stored in the input texture. However, whenever I try to sample from an input texture in my vertex shader the sampling function returns 0.
I haven't been able to find anything suggesting that this is definitively possible or impossible so that's my main question.
There are several examples of doing this in Direct3D but I would rather use Direct2D exclusively if possible. Sample code would obviously be appreciated. If this turns out to be possible and I'm doing something wrong I'll post my code.
The problem is that offset is always a zero vector. The best explanation I can find is that the input texture isn't bound to the vertex shader, only the pixel shader. Direct3D has a way to bind a texture to a vertex shader (VSSetShaderResources) but I can't find anything similar in Direct2D.