/// <summary> /// Resets a descriptor pool object. /// </summary> public unsafe void Reset(SharpVk.DescriptorPoolResetFlags?flags = default(SharpVk.DescriptorPoolResetFlags?)) { try { SharpVk.DescriptorPoolResetFlags marshalledFlags = default(SharpVk.DescriptorPoolResetFlags); if (flags != null) { marshalledFlags = flags.Value; } else { marshalledFlags = default(SharpVk.DescriptorPoolResetFlags); } SharpVk.Interop.VkDescriptorPoolResetDelegate commandDelegate = commandCache.GetCommandDelegate <SharpVk.Interop.VkDescriptorPoolResetDelegate>("vkResetDescriptorPool", ""); Result methodResult = commandDelegate(this.parent.handle, this.handle, marshalledFlags); if (SharpVkException.IsError(methodResult)) { throw SharpVkException.Create(methodResult); } } finally { Interop.HeapUtil.FreeAll(); } }
/// <summary> /// Resets a descriptor pool object. /// </summary> public unsafe void Reset(SharpVk.DescriptorPoolResetFlags?flags = default(SharpVk.DescriptorPoolResetFlags?)) { try { SharpVk.DescriptorPoolResetFlags marshalledFlags = default(SharpVk.DescriptorPoolResetFlags); if (flags != null) { marshalledFlags = flags.Value; } else { marshalledFlags = default(SharpVk.DescriptorPoolResetFlags); } Result methodResult = Interop.Commands.vkResetDescriptorPool(this.parent.handle, this.handle, marshalledFlags); if (SharpVkException.IsError(methodResult)) { throw SharpVkException.Create(methodResult); } } finally { Interop.HeapUtil.FreeAll(); } }
public static extern SharpVk.Result vkResetDescriptorPool(SharpVk.Interop.Device device, SharpVk.Interop.DescriptorPool descriptorPool, SharpVk.DescriptorPoolResetFlags flags);