Exemple #1
0
        public virtual int FindClosestMatchingMode1(
            ref DXGI_MODE_DESC1 pModeToMatch,
            out DXGI_MODE_DESC1 pClosestMatch,
            IUnknown pConcernedDevice
            )
        {
            var fp = GetFunctionPointer(20);

            if (m_FindClosestMatchingMode1Func == null)
            {
                m_FindClosestMatchingMode1Func = (FindClosestMatchingMode1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(FindClosestMatchingMode1Func));
            }

            return(m_FindClosestMatchingMode1Func(m_ptr, ref pModeToMatch, out pClosestMatch, pConcernedDevice != null ? pConcernedDevice.Ptr : IntPtr.Zero));
        }
Exemple #2
0
        public virtual int GetDisplayModeList1(
            DXGI_FORMAT EnumFormat,
            uint Flags,
            out uint pNumModes,
            out DXGI_MODE_DESC1 pDesc
            )
        {
            var fp = GetFunctionPointer(19);

            if (m_GetDisplayModeList1Func == null)
            {
                m_GetDisplayModeList1Func = (GetDisplayModeList1Func)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDisplayModeList1Func));
            }

            return(m_GetDisplayModeList1Func(m_ptr, EnumFormat, Flags, out pNumModes, out pDesc));
        }