public virtual int DestroyOwnedObject(
            ID3D12DeviceChild pObject
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_DestroyOwnedObjectFunc == null)
            {
                m_DestroyOwnedObjectFunc = (DestroyOwnedObjectFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DestroyOwnedObjectFunc));
            }

            return(m_DestroyOwnedObjectFunc(m_ptr, pObject != null ? pObject.Ptr : IntPtr.Zero));
        }
示例#2
0
        public virtual int CreateSharedHandle(
            ID3D12DeviceChild pObject,
            ref _SECURITY_ATTRIBUTES pAttributes,
            uint Access,
            ref ushort Name,
            out IntPtr pHandle
            )
        {
            var fp = GetFunctionPointer(31);

            if (m_CreateSharedHandleFunc == null)
            {
                m_CreateSharedHandleFunc = (CreateSharedHandleFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSharedHandleFunc));
            }

            return(m_CreateSharedHandleFunc(m_ptr, pObject != null ? pObject.Ptr : IntPtr.Zero, ref pAttributes, Access, ref Name, out pHandle));
        }