Example #1
0
        private void CreateDevice()
        {
            _device = XnaHelper.CreateDevice(_targetSize, false, false, false);

            _usePostProcessor = _device.GraphicsDeviceCapabilities.DeviceType == DeviceType.Hardware &&
                                _device.GraphicsDeviceCapabilities.MaxPixelShaderProfile >= ShaderProfile.PS_3_0;
        }
Example #2
0
        private void CreateDevice()
        {
            _device = XnaHelper.CreateDevice(
                _targetSize,
                true,
                true,
                true);

            if (_deviceDepthStencilBuffer != null &&
                _deviceDepthStencilBuffer != _device.DepthStencilBuffer &&
                !_deviceDepthStencilBuffer.IsDisposed)
            {
                _deviceDepthStencilBuffer.Dispose();
            }

            _deviceDepthStencilBuffer = _device.DepthStencilBuffer;
        }