Finish of initalization of directx

Signed-off-by: Moose517 <moose51789@gmail.com>