private static void GetRenderingExtImpl(IntPtr nativeDisplay, out int w, out int h)
        {
            var manager = instance;

            if (manager.m_mode == DisplayAPIControlMode.FromEditor)
            {
                var view = manager.m_views[(int)nativeDisplay];

                if (view == null)
                {
                    w = 0;
                    h = 0;
                }
                else
                {
                    w = (int)view.targetSize.x;
                    h = (int)view.targetSize.y;
                }
            }
            else
            {
                w = (int)EditorDisplayUtility.GetDisplayWidth((int)nativeDisplay);
                h = (int)EditorDisplayUtility.GetDisplayHeight((int)nativeDisplay);
            }
        }
        private static void GetSystemExtImpl(IntPtr nativeDisplay, out int w, out int h)
        {
            var manager = instance;

            if (manager.m_mode == DisplayAPIControlMode.FromEditor)
            {
                var view = manager.m_views[(int)nativeDisplay];

                if (view == null)
                {
                    w = 0;
                    h = 0;
                }
                else
                {
                    w = (int)view.position.width;
                    h = (int)view.position.height;
                }
            }
            else
            {
                w = (int)EditorDisplayUtility.GetDisplayWidth((int)nativeDisplay);
                h = (int)EditorDisplayUtility.GetDisplayHeight((int)nativeDisplay);
            }
        }