Refactory some functions from DX11AppBase to DX11AppCore