Ejemplo n.º 1
0
 public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->PoolSizes);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
Ejemplo n.º 2
0
 public DescriptorPoolCreateInfo()
 {
     NativePointer        = (Unmanaged.DescriptorPoolCreateInfo *)MemUtil.Alloc(typeof(Unmanaged.DescriptorPoolCreateInfo));
     NativePointer->SType = StructureType.DescriptorPoolCreateInfo;
 }