private void InitDevice() { Debug.Assert( _device != null ); // get our back buffer pixel format _bbPixelFormat = _device.DisplayMode.Format; }