public CommandBufferBeginInfo ( StructureType sType = StructureType.CommandBufferBeginInfo, void *pNext = default, CommandBufferUsageFlags flags = default, CommandBufferInheritanceInfo *pInheritanceInfo = default ) { SType = sType; PNext = pNext; Flags = flags; PInheritanceInfo = pInheritanceInfo; }
protected static void BeginCommandBuffer(CommandBuffer buffer, CommandBufferUsageFlags flags, CommandBufferInheritanceInfo *inheritInfo) { var info = new CommandBufferBeginInfo { SType = StructureType.CommandBufferBeginInfo, Flags = flags, PInheritanceInfo = inheritInfo }; var res = VkApi.BeginCommandBuffer(buffer, &info); if (res != Result.Success) { throw new VMASharp.VulkanResultException("Failed to begin Command Buffer recording!", res); } }
//Helper methods for other examples protected static void BeginCommandBuffer(CommandBuffer buffer, CommandBufferUsageFlags flags = default) { BeginCommandBuffer(buffer, flags, null); }