add index buffer and constant buffer for Direct3D