DescriptorPoolBuilder

A helper builder class for chaining calls to configure and create a DescriptorPool.

Remarks

Initializes a new instance of the DescriptorPoolBuilder class.

Public Methods

AddPoolSize

public DescriptorPoolBuilder AddPoolSize(DescriptorType descriptorType, uint count)

Adds a descriptor pool size to the builder.

Parameters:

  • descriptorType (DescriptorType): The type of descriptor.
  • count (uint): The number of descriptors of this type to allocate.

Returns: DescriptorPoolBuilder

  • The builder, with the pool size added.

SetPoolFlags

public DescriptorPoolBuilder SetPoolFlags(DescriptorPoolCreateFlags flags)

Sets the pool flags for the descriptor pool.

Parameters:

  • flags (DescriptorPoolCreateFlags): The descriptor pool create flags.

Returns: DescriptorPoolBuilder

  • The builder, with the pool flags set.

SetMaxSets

public DescriptorPoolBuilder SetMaxSets(uint count)

Sets the maximum number of descriptor sets that can be allocated from the descriptor pool.

Parameters:

  • count (uint): The maximum number of descriptor sets.

Returns: DescriptorPoolBuilder

  • The builder, with the max sets set.

Build

public DescriptorPool Build()

Builds and returns a new instance of DescriptorPool.

Returns: DescriptorPool

  • The newly created DescriptorPool instance.