Table of Contents

Class RenderDrawContext

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll

Rendering context used during Draw(RenderDrawContext).

public sealed class RenderDrawContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
RenderDrawContext
Implements
Inherited Members
Extension Methods

Constructors

RenderDrawContext(IServiceRegistry, RenderContext, GraphicsContext)

public RenderDrawContext(IServiceRegistry services, RenderContext renderContext, GraphicsContext graphicsContext)

Parameters

services IServiceRegistry
renderContext RenderContext
graphicsContext GraphicsContext

Properties

CommandList

Gets the command list.

public CommandList CommandList { get; }

Property Value

CommandList

GraphicsContext

public GraphicsContext GraphicsContext { get; }

Property Value

GraphicsContext

GraphicsDevice

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice

QueryManager

public QueryManager QueryManager { get; }

Property Value

QueryManager

RenderContext

Gets the render context.

public RenderContext RenderContext { get; }

Property Value

RenderContext

Resolver

public ResourceResolver Resolver { get; }

Property Value

ResourceResolver

ResourceGroupAllocator

Gets the ResourceGroup allocator.

public ResourceGroupAllocator ResourceGroupAllocator { get; }

Property Value

ResourceGroupAllocator

Methods

GetSharedEffect<T>()

Gets or creates a shared effect.

public T GetSharedEffect<T>() where T : DrawEffect, new()

Returns

T

A singleton instance of T

Type Parameters

T

Type of the shared effect (mush have a constructor taking a RenderContext

LockCommandList()

Locks the command list until Dispose() is called on the returned value type.

public DefaultCommandListLock LockCommandList()

Returns

DefaultCommandListLock

PopRenderTargets()

Restores render targets and viewport state.

public void PopRenderTargets()

PushRenderTargetsAndRestore()

Pushes render targets and viewport state.

public RenderDrawContext.RenderTargetRestore PushRenderTargetsAndRestore()

Returns

RenderDrawContext.RenderTargetRestore