Class RenderDrawContext
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
IServiceRegistryrenderContext
RenderContextgraphicsContext
GraphicsContext
Properties
CommandList
Gets the command list.
public CommandList CommandList { get; }
Property Value
GraphicsContext
public GraphicsContext GraphicsContext { get; }
Property Value
GraphicsDevice
public GraphicsDevice GraphicsDevice { get; }
Property Value
QueryManager
public QueryManager QueryManager { get; }
Property Value
RenderContext
Gets the render context.
public RenderContext RenderContext { get; }
Property Value
Resolver
public ResourceResolver Resolver { get; }
Property Value
ResourceGroupAllocator
Gets the ResourceGroup allocator.
public ResourceGroupAllocator ResourceGroupAllocator { get; }
Property Value
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
PopRenderTargets()
Restores render targets and viewport state.
public void PopRenderTargets()
PushRenderTargetsAndRestore()
Pushes render targets and viewport state.
public RenderDrawContext.RenderTargetRestore PushRenderTargetsAndRestore()