Esempio n. 1
0
        //!!!!
        //static void Listener_eventOccurred( string name )
        //{
        //	if( RenderSystemEvent != null )
        //	{
        //		RenderSystemEvent type;

        //		if( name == "DeviceLost" )
        //			type = NeoAxis.RenderSystemEvent.DeviceLost;
        //		else if( name == "DeviceRestored" )
        //			type = NeoAxis.RenderSystemEvent.DeviceRestored;
        //		else
        //		{
        //			Log.Fatal( "RenderSystem: Unknown render system event \"{0}\".", name );
        //			return;
        //		}

        //		RenderSystemEvent( type );
        //	}
        //}

        static void InitGPUSettingsAndCapabilities()
        {
            Capabilities = Bgfx.GetCaps();

            Log.InvisibleInfo("Renderer: Backend: " + Capabilities.Backend.ToString());
            Log.InvisibleInfo("Renderer: Adapter vendor: " + Capabilities.CurrentAdapter.Vendor.ToString());
            Log.InvisibleInfo("Renderer: Adapter device: " + Capabilities.CurrentAdapter.DeviceId.ToString());
            Log.InvisibleInfo("Renderer: Adapter description: " + Bgfx.GetGPUDescription());
            Log.InvisibleInfo("Renderer: -------------------------");
        }