Table of Contents

Class BatchBase<TDrawInfo>.DeviceResourceContext

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Use a ResourceContext per GraphicsDevice (DeviceContext)

protected class BatchBase<TDrawInfo>.DeviceResourceContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
BatchBase<TDrawInfo>.DeviceResourceContext
Implements
Inherited Members
Extension Methods

Constructors

DeviceResourceContext(GraphicsDevice, VertexDeclaration, ResourceBufferInfo)

public DeviceResourceContext(GraphicsDevice device, VertexDeclaration declaration, BatchBase<TDrawInfo>.ResourceBufferInfo resourceBufferInfo)

Parameters

device GraphicsDevice
declaration VertexDeclaration
resourceBufferInfo BatchBase<TDrawInfo>.ResourceBufferInfo

Fields

IndexBuffer

The index buffer of the batch.

public Buffer IndexBuffer

Field Value

Buffer

IndexBufferPosition

The current position in index into the index array buffer.

public int IndexBufferPosition

Field Value

int

IndexCount

Gets the number of indices.

public readonly int IndexCount

Field Value

int

InputElements

public readonly InputElementDescription[] InputElements

Field Value

InputElementDescription[]

IsInImmediateMode

Indicate if the batch system is drawing in immediate mode for this buffer.

public bool IsInImmediateMode

Field Value

bool

IsIndexBufferDynamic

Gets a boolean indicating if the index buffer is dynamic.

public readonly bool IsIndexBufferDynamic

Field Value

bool

VertexBuffer

The vertex buffer of the batch.

public Buffer VertexBuffer

Field Value

Buffer

VertexBufferPosition

The current position in vertex into the vertex array buffer.

public int VertexBufferPosition

Field Value

int

VertexCount

Gets the number of vertices.

public readonly int VertexCount

Field Value

int

VertexDeclaration

public readonly VertexDeclaration VertexDeclaration

Field Value

VertexDeclaration