C/C++ Direct3d Resources