Class BatchBase<TDrawInfo>.DeviceResourceContext
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
GraphicsDevicedeclaration
VertexDeclarationresourceBufferInfo
BatchBase<TDrawInfo>.ResourceBufferInfo
Fields
IndexBuffer
The index buffer of the batch.
public Buffer IndexBuffer
Field Value
IndexBufferPosition
The current position in index into the index array buffer.
public int IndexBufferPosition
Field Value
IndexCount
Gets the number of indices.
public readonly int IndexCount
Field Value
InputElements
public readonly InputElementDescription[] InputElements
Field Value
IsInImmediateMode
Indicate if the batch system is drawing in immediate mode for this buffer.
public bool IsInImmediateMode
Field Value
IsIndexBufferDynamic
Gets a boolean indicating if the index buffer is dynamic.
public readonly bool IsIndexBufferDynamic
Field Value
VertexBuffer
The vertex buffer of the batch.
public Buffer VertexBuffer
Field Value
VertexBufferPosition
The current position in vertex into the vertex array buffer.
public int VertexBufferPosition
Field Value
VertexCount
Gets the number of vertices.
public readonly int VertexCount
Field Value
VertexDeclaration
public readonly VertexDeclaration VertexDeclaration