/// <summary>
 /// Update the contents of a descriptor set object using an update template.
 /// </summary>
 /// <param name="descriptorSet">The descriptor set to update.</param>
 /// <param name="descriptorUpdateTemplate">
 /// Specifies the update mapping between the application pointer and the descriptor set to update.
 /// </param>
 /// <param name="data">
 /// A pointer to memory which contains one or more structures of <see
 /// cref="DescriptorImageInfo"/>, <see cref="DescriptorBufferInfo"/>, or <see
 /// cref="BufferView"/> used to write the descriptors.
 /// </param>
 public static void UpdateWithTemplateKhr(this DescriptorSet descriptorSet,
                                          DescriptorUpdateTemplateKhr descriptorUpdateTemplate, IntPtr data)
 {
     vkUpdateDescriptorSetWithTemplateKHR(descriptorSet.Parent.Parent, descriptorSet, descriptorUpdateTemplate, data);
 }
Example #2
0
 /// <summary>
 /// Pushes descriptor updates into a command buffer using a descriptor update template.
 /// </summary>
 /// <param name="commandBuffer">
 /// The command buffer that the descriptors will be recorded in.
 /// </param>
 /// <param name="descriptorUpdateTemplate">
 /// A descriptor update template which defines how to interpret the descriptor information in
 /// <paramref name="data"/>.
 /// </param>
 /// <param name="layout">
 /// The object used to program the bindings.
 /// <para>
 /// It must be compatible with the layout used to create the <paramref
 /// name="descriptorUpdateTemplate"/> handle.
 /// </para>
 /// </param>
 /// <param name="set">
 /// The set number of the descriptor set in the pipeline layout that will be updated.
 /// <para>
 /// This must be the same number used to create the <paramref
 /// name="descriptorUpdateTemplate"/> handle.
 /// </para>
 /// </param>
 /// <param name="data">
 /// Points to memory which contains the descriptors for the templated update.
 /// </param>
 public static void CmdPushDescriptorSetWithTemplateKhr(this CommandBuffer commandBuffer,
                                                        DescriptorUpdateTemplateKhr descriptorUpdateTemplate, PipelineLayout layout, int set, IntPtr data)
 {
     vkCmdPushDescriptorSetWithTemplateKHR(commandBuffer.Handle, descriptorUpdateTemplate, layout, set, data);
 }