Example #1
0
        public virtual int CallFunction(
            string pModuleInstanceNamespace,
            ID3D11Module pModuleWithFunctionPrototype,
            string pFunctionName,
            out ID3D11LinkingNode ppCallNode
            )
        {
            var fp = GetFunctionPointer(6);

            if (m_CallFunctionFunc == null)
            {
                m_CallFunctionFunc = (CallFunctionFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CallFunctionFunc));
            }
            ppCallNode = new ID3D11LinkingNode();
            return(m_CallFunctionFunc(m_ptr, pModuleInstanceNamespace, pModuleWithFunctionPrototype != null ? pModuleWithFunctionPrototype.Ptr : IntPtr.Zero, pFunctionName, out ppCallNode.PtrForNew));
        }
Example #2
0
 public static extern int D3DLoadModule(
     IntPtr pSrcData,
     ulong cbSrcDataSize,
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <ID3D11Module>))] out ID3D11Module ppModule
     );