Class ParameterCollectionLayoutExtensions
Provides extension methods for updating ParameterCollectionLayout instances.
public static class ParameterCollectionLayoutExtensions
- Inheritance
-
objectParameterCollectionLayoutExtensions
Methods
ProcessConstantBuffer(ParameterCollectionLayout, EffectConstantBufferDescription)
Updates a parameter collection layout with a description of an Effect's Constant Buffer.
public static void ProcessConstantBuffer(this ParameterCollectionLayout parameterCollectionLayout, EffectConstantBufferDescription constantBuffer)
Parameters
parameterCollectionLayoutParameterCollectionLayoutThe ParameterCollectionLayout to be updated with resource information.
constantBufferEffectConstantBufferDescriptionThe description of an Effect's Constant Buffer containing members to process.
Remarks
This method iterates over the members of the provided Constant Buffer, creating and adding ParameterKeyInfo instances to the layout. It also updates the buffer size of the parameter collection layout by adding the size of the Constant Buffer.
ProcessResources(ParameterCollectionLayout, DescriptorSetLayoutBuilder)
Updates a parameter collection layout with information from a Descriptor Set layout.
public static void ProcessResources(this ParameterCollectionLayout parameterCollectionLayout, DescriptorSetLayoutBuilder layout)
Parameters
parameterCollectionLayoutParameterCollectionLayoutThe ParameterCollectionLayout to be updated with resource information.
layoutDescriptorSetLayoutBuilderThe DescriptorSetLayoutBuilder containing the resource entries to process.
Remarks
This method iterates over the entries in the provided layout and
adds corresponding ParameterKeyInfo objects to the
parameterCollectionLayout.
The resource count in parameterCollectionLayout is incremented
for each entry processed.