Let's say that i have a regular 2d texture (not a volume texture). Is it possible to do trilinear texture sampling of that texture even though it isn't a volume texture in opengl or directx?
Specifically, if i had a 2x4 texture laid out like below where A through H are pixels:
What I'd like to get is a trilinear sample being the result of linearly interpolating the bilinear sampling of (A,B,C,D) and (E,F,G,H).
I know i could take two bilinear texture samples and lerp them to get what I want, but is there a hardware supported way to do this?