示例#1
0
 /// <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);
示例#3
0
        /// <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);
        }
示例#4
0
 internal static unsafe extern Result vkResetCommandPool(Device device, CommandPool commandPool, CommandPoolResetFlags flags);
示例#5
0
 internal static unsafe extern Result vkResetCommandPool(IntPtr device, UInt64 commandPool, CommandPoolResetFlags flags);
示例#6
0
 public unsafe void ResetCommandPool(CommandPool commandPool, CommandPoolResetFlags flags)
 {
     vkResetCommandPool(this, commandPool, flags).CheckError();
 }
示例#7
0
 internal static unsafe extern Result vkResetCommandPool(Device device, CommandPool commandPool, CommandPoolResetFlags flags);