/// <summary> /// Reset a command pool. /// </summary> public void Reset(CommandPoolResetFlags flags) { unsafe { try { Result commandResult; commandResult = Interop.Commands.vkResetCommandPool(this.parent.handle, this.handle, flags); if (SharpVkException.IsError(commandResult)) { throw SharpVkException.Create(commandResult); } } finally { Interop.HeapUtil.FreeLog(); } } }
public static extern Result vkResetCommandPool(IntPtr device, ulong commandPool, CommandPoolResetFlags flags);
/// <summary> /// Reset a command pool. /// </summary> /// <param name="flags"> /// Contains additional flags controlling the behavior of the reset. If flags includes <see /// cref="CommandPoolResetFlags.ReleaseResources"/>, resetting a command pool recycles all of /// the resources from the command pool back to the system. /// </param> /// <exception cref="VulkanException">Vulkan returns an error code.</exception> public void Reset(CommandPoolResetFlags flags = 0) { Result result = vkResetCommandPool(Parent, this, flags); VulkanException.ThrowForInvalidResult(result); }
internal static unsafe extern Result vkResetCommandPool(Device device, CommandPool commandPool, CommandPoolResetFlags flags);
internal static unsafe extern Result vkResetCommandPool(IntPtr device, UInt64 commandPool, CommandPoolResetFlags flags);
public unsafe void ResetCommandPool(CommandPool commandPool, CommandPoolResetFlags flags) { vkResetCommandPool(this, commandPool, flags).CheckError(); }