Table of Contents

Struct ResourceGroupBufferUploader

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Describes how a Descriptor Set maps to real resource bindings.

public struct ResourceGroupBufferUploader
Inherited Members
Extension Methods

Remarks

This might become a core part of Effect at some point.

Methods

Apply(CommandList, ResourceGroup[], int)

Applies the specified resource groups to the given Command List, binding their Graphics Resources and uploading Constant Buffers as needed.

public readonly void Apply(CommandList commandList, ResourceGroup[] resourceGroups, int resourceGroupsOffset)

Parameters

commandList CommandList

The Command List to which the resource groups will be applied.

resourceGroups ResourceGroup[]

An array of resource groups containing the resources to be bound. Each resource group may include Constant Buffers, Textures, or other GPU resources.

resourceGroupsOffset int

The starting index in the resourceGroups array from which to begin applying resource groups.

Remarks

If a resource group contains a Constant Buffer that has not yet been uploaded, the Buffer is uploaded before being bound.

Clear()

Releases all pre-allocated Constant Buffers associated with the current resource group bindings and clears the bindings.

public void Clear()

Compile(GraphicsDevice, EffectDescriptorSetReflection, EffectBytecode)

Compiles a set of Constant Buffers to bind for an Effect, pre-allocating them as needed.

public void Compile(GraphicsDevice graphicsDevice, EffectDescriptorSetReflection descriptorSetLayouts, EffectBytecode effectBytecode)

Parameters

graphicsDevice GraphicsDevice

The Graphics Device used to create and manage GPU resources.

descriptorSetLayouts EffectDescriptorSetReflection

The Descriptor Set layouts that define the structure of resource bindings for the Effect.

effectBytecode EffectBytecode

The bytecode of the Effect, including reflection data used to resolve Constant Buffers and other resources.

See Also