This is a method of the IDirect3dRM Interface.
public Direct3dRMTexture loadTextureFromResource(int hnd);