public static Direct3DGraphicsFacade Create(RenderForm form)
        {
            // Low-level device
            var device = Direct3DGraphicsDevice.Create(form);

            // Load support defaults
            var shaderLoader        = new Direct3DShaderLoader(device.InternalD3DDevice);
            var techniqueCollection = Direct3DTechniqueCollection.Create(shaderLoader);
            var textureFactory      = new Direct3DTextureFactory(device.InternalD3DDevice);
            var presetsStore        = Direct3DPresetsStore.Create(device, textureFactory);

            return(new Direct3DGraphicsFacade {
                Device = device,
                Techniques = techniqueCollection,
                Presets = presetsStore
            });
        }
 public DeferredDeviceContext(Direct3DGraphicsDevice graphicsDevice, DeviceContext deviceContext, RenderStates renderStates) : base(deviceContext, renderStates)
 {
     _graphicsDevice = graphicsDevice;
 }