Table of Contents

Class RootSignature

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Represents a Root Signature, used to specify how Graphics Resources, such as Textures and Buffers, are bound to the graphics pipeline (i.e. how DescriptorSet will be bound together).

public class RootSignature : GraphicsResourceBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
object
RootSignature
Implements
Inherited Members
Extension Methods

Remarks

A Root Signature links Command Lists to the Graphics Resources the Shaders require. It is similar to a function signature, it determines the types of data the Shaders should expect, but does not define the actual memory or data.

The Graphics Resources are described by Descriptors and bundled in DescriptorSets. An EffectDescriptorSetReflection defines the layout of the Graphics Resources, bind slot names, and other metadata.

Methods

New(GraphicsDevice, EffectDescriptorSetReflection)

Creates a new Root Signature from the given EffectDescriptorSetReflection.

public static RootSignature New(GraphicsDevice graphicsDevice, EffectDescriptorSetReflection effectDescriptorSetReflection)

Parameters

graphicsDevice GraphicsDevice

The GraphicsDevice.

effectDescriptorSetReflection EffectDescriptorSetReflection

A description of the layout of the Graphics Resources to bind.

Returns

RootSignature

The new Root Signature.

OnRecreate()

Called when the GraphicsDevice has been recreated.

protected override bool OnRecreate()

Returns

bool

true if resource has transitioned to the Active state.