D3D: Bring RAII concept to D3D object pointers as class members