示例#1
0
 internal unsafe void MarshalTo(Interop.AllocationCallbacks *pointer)
 {
     pointer->UserData              = this.UserData.ToPointer();
     pointer->PfnAllocation         = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnAllocation);
     pointer->PfnReallocation       = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnReallocation);
     pointer->PfnFree               = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnFree);
     pointer->PfnInternalAllocation = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnInternalAllocation);
     pointer->PfnInternalFree       = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(this.PfnInternalFree);
 }
示例#2
0
 internal AllocationCallbacks(Interop.AllocationCallbacks* ptr)
 {
     m = ptr;
 }
示例#3
0
文件: Glfw3.cs 项目: Tommsy64/SharpVk
 public static extern Result CreateWindowSurface(Interop.Instance instance, WindowHandle window, Interop.AllocationCallbacks *pAllocator, out ulong surface);
示例#4
0
 public AllocationCallbacks()
 {
     m = (Interop.AllocationCallbacks*) Interop.Structure.Allocate (typeof (Interop.AllocationCallbacks));
 }