Table of Contents

Class ImmediateDebugRenderFeature

Namespace
Stride.CommunityToolkit.DebugShapes
Assembly
Stride.CommunityToolkit.DebugShapes.dll

Provides functionality for rendering immediate debug primitives such as lines, shapes, and other geometric objects.

public class ImmediateDebugRenderFeature : RootRenderFeature, IComponent, IReferencable, ICollectorHolder, IGraphicsRendererCore, IDisposable
Inheritance
ImmediateDebugRenderFeature
Implements
Inherited Members

Remarks

This class is designed to render debug primitives directly to the screen, bypassing typical rendering pipelines. It supports various geometric shapes, including quads, circles, spheres, cubes, capsules, cylinders, cones, and lines. The rendering process is optimized for debugging purposes, allowing developers to visualize objects in real-time.

Constructors

ImmediateDebugRenderFeature()

Initializes a new instance of the ImmediateDebugRenderFeature class.

public ImmediateDebugRenderFeature()

Remarks

This constructor sets the default sort key to ensure that the feature is rendered last, preventing background elements from being rendered over objects without depth testing in the opaque stage.

Fields

ProfilingKey

The block the profiler shows this feature's GPU time under.

public static readonly ProfilingKey ProfilingKey

Field Value

ProfilingKey

Properties

SupportedRenderObjectType

public override Type SupportedRenderObjectType { get; }

Property Value

Type

Methods

Draw(RenderDrawContext, RenderView, RenderViewStage, int, int)

public override void Draw(RenderDrawContext context, RenderView renderView, RenderViewStage renderViewStage, int startIndex, int endIndex)

Parameters

context RenderDrawContext
renderView RenderView
renderViewStage RenderViewStage
startIndex int
endIndex int

Extract()

public override void Extract()

Flush(RenderDrawContext)

public override void Flush(RenderDrawContext context)

Parameters

context RenderDrawContext

InitializeCore()

protected override void InitializeCore()

Prepare(RenderDrawContext)

public override void Prepare(RenderDrawContext context)

Parameters

context RenderDrawContext

Unload()

public override void Unload()