Esempio n. 1
0
        public virtual int GetDesc(
            out DXGI_SURFACE_DESC pDesc
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_GetDescFunc == null)
            {
                m_GetDescFunc = (GetDescFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetDescFunc));
            }

            return(m_GetDescFunc(m_ptr, out pDesc));
        }
Esempio n. 2
0
        public virtual int CreateSurface(
            ref DXGI_SURFACE_DESC pDesc,
            uint NumSurfaces,
            uint Usage,
            ref DXGI_SHARED_RESOURCE pSharedResource,
            out IDXGISurface ppSurface
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_CreateSurfaceFunc == null)
            {
                m_CreateSurfaceFunc = (CreateSurfaceFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSurfaceFunc));
            }
            ppSurface = new IDXGISurface();
            return(m_CreateSurfaceFunc(m_ptr, ref pDesc, NumSurfaces, Usage, ref pSharedResource, out ppSurface.PtrForNew));
        }