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); }
internal AllocationCallbacks(Interop.AllocationCallbacks* ptr) { m = ptr; }
public static extern Result CreateWindowSurface(Interop.Instance instance, WindowHandle window, Interop.AllocationCallbacks *pAllocator, out ulong surface);
public AllocationCallbacks() { m = (Interop.AllocationCallbacks*) Interop.Structure.Allocate (typeof (Interop.AllocationCallbacks)); }