Table of Contents

Class ParameterCollectionLayoutExtensions

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Provides extension methods for updating ParameterCollectionLayout instances.

public static class ParameterCollectionLayoutExtensions
Inheritance
object
ParameterCollectionLayoutExtensions

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

parameterCollectionLayout ParameterCollectionLayout

The ParameterCollectionLayout to be updated with resource information.

constantBuffer EffectConstantBufferDescription

The 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

parameterCollectionLayout ParameterCollectionLayout

The ParameterCollectionLayout to be updated with resource information.

layout DescriptorSetLayoutBuilder

The 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.