Esempio n. 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();
         }
     }
 }
Esempio n. 2
0
 public static extern Result vkResetCommandPool(IntPtr device, ulong commandPool, CommandPoolResetFlags flags);
Esempio n. 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);
        }
Esempio n. 4
0
 internal static unsafe extern Result vkResetCommandPool(Device device, CommandPool commandPool, CommandPoolResetFlags flags);
Esempio n. 5
0
 internal static unsafe extern Result vkResetCommandPool(IntPtr device, UInt64 commandPool, CommandPoolResetFlags flags);
Esempio n. 6
0
 public unsafe void ResetCommandPool(CommandPool commandPool, CommandPoolResetFlags flags)
 {
     vkResetCommandPool(this, commandPool, flags).CheckError();
 }
Esempio n. 7
0
 internal static unsafe extern Result vkResetCommandPool(Device device, CommandPool commandPool, CommandPoolResetFlags flags);