封装DirectX的初始化。

Signed-off-by: CyberZHG <CyberZHG@gmail.com>