Struct ResourceGroupBufferUploader
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
commandListCommandListThe Command List to which the resource groups will be applied.
resourceGroupsResourceGroup[]An array of resource groups containing the resources to be bound. Each resource group may include Constant Buffers, Textures, or other GPU resources.
resourceGroupsOffsetintThe starting index in the
resourceGroupsarray 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
graphicsDeviceGraphicsDeviceThe Graphics Device used to create and manage GPU resources.
descriptorSetLayoutsEffectDescriptorSetReflectionThe Descriptor Set layouts that define the structure of resource bindings for the Effect.
effectBytecodeEffectBytecodeThe bytecode of the Effect, including reflection data used to resolve Constant Buffers and other resources.