Esempio 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);
 }
Esempio n. 2
0
 public DeviceCreateInfo()
 {
     NativePointer        = (Unmanaged.DeviceCreateInfo *)MemUtil.Alloc(typeof(Unmanaged.DeviceCreateInfo));
     NativePointer->SType = StructureType.DeviceCreateInfo;
 }