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