Class DescriptorPool
A pool where the application can allocate Descriptors that are grouped together in DescriptorSets.
public class DescriptorPool : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
- Inheritance
-
objectDescriptorPool
- Implements
- Inherited Members
- Extension Methods
Methods
Destroy()
Disposes the resources associated with the Graphics Resource, removes itself from the GraphicsDevice's resource registry, and transitions to the Destroyed state.
protected override void Destroy()
New(GraphicsDevice, DescriptorTypeCount[])
Creates a new Descriptor Pool with space for the specified counts of each Descriptor type.
public static DescriptorPool New(GraphicsDevice graphicsDevice, DescriptorTypeCount[] counts)
Parameters
graphicsDeviceGraphicsDeviceThe Graphics Device.
countsDescriptorTypeCount[]A list of DescriptorTypeCount structures indicating the number of each type of Descriptor that need to be allocated.
Returns
- DescriptorPool
The new Descriptor Pool.
Reset()
Clears the Descriptor Pool, resetting all allocated Descriptors.
public void Reset()