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