added a function to get the d3d texture from an obs texture