I'm trying to use DirectX on a project to create a simplified graphics API for beginner programmers. In my efforts, I've come across a very frustrating feature of DirectX, i.e. when I specify a vertex buffer or mesh, I must specify the device upon construction of a mesh object. I would like to leave this field blank, ideally, and then specify the device later - sometime before rendering (the idea is that the rendered objects might be sent to different devices). Is there any way to do this?
thanks!
thanks!