Table of Contents

Class GraphicsContext

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

A graphics command context. You should usually stick to one per rendering thread.

public class GraphicsContext
Inheritance
GraphicsContext
Extension Methods

Constructors

GraphicsContext(GraphicsDevice, GraphicsResourceAllocator, CommandList)

public GraphicsContext(GraphicsDevice graphicsDevice, GraphicsResourceAllocator allocator = null, CommandList commandList = null)

Parameters

graphicsDevice GraphicsDevice
allocator GraphicsResourceAllocator
commandList CommandList

Properties

Allocator

public GraphicsResourceAllocator Allocator { get; }

Property Value

GraphicsResourceAllocator

CommandList

Gets the current command list.

public CommandList CommandList { get; set; }

Property Value

CommandList

ResourceGroupAllocator

Gets the current resource group allocator.

public ResourceGroupAllocator ResourceGroupAllocator { get; }

Property Value

ResourceGroupAllocator