Esempio n. 1
0
        public int GetProperties(AllocatorProperties pProps)
        {
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            GetPropertiesProc _Proc = GetProcDelegate<GetPropertiesProc>(4);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        pProps
                        );
        }
Esempio n. 2
0
        public int RequestAllocator(IntPtr pPreferred, AllocatorProperties pProps, out IntPtr ppActual)
        {
            ppActual = IntPtr.Zero;
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            RequestAllocatorProc _Proc = GetProcDelegate<RequestAllocatorProc>(3);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        pPreferred, pProps, out ppActual
                        );
        }
Esempio n. 3
0
        public int SetProperties(AllocatorProperties pRequest, AllocatorProperties pActual)
        {
            if (m_pUnknown == IntPtr.Zero) return E_NOINTERFACE;

            SetPropertiesProc _Proc = GetProcDelegate<SetPropertiesProc>(3);

            if (_Proc == null) return E_UNEXPECTED;

            return (HRESULT)_Proc(
                        m_pUnknown,
                        pRequest, pActual
                        );
        }