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