sharpdx / SharpDX-Samples

Official repository for all SharpDX Samples
346 stars 222 forks source link

how reset the graphicsdevice #14

Closed PedroAlvesq closed 9 years ago

PedroAlvesq commented 9 years ago

how i reset my graphicsdevic in sharpdx in xna i use this do reset the graphics GraphicsDevice.BlendState = BlendState.Opaque;

        GraphicsDevice.DepthStencilState = DepthStencilState.Default;
        device.Clear(Color.CornflowerBlue);
        GraphicsDevice.SamplerStates[0] = SamplerState.LinearWrap;
xoofx commented 9 years ago

There is no strict equivalent in the Toolkit. Either reset the device and set back the backbuffer/rendertarget, or access directly the Direct3D11 objects and reset the states manually.