Class BatchBase<TDrawInfo>.DeviceResourceContext
Use a ResourceContext per GraphicsDevice (DeviceContext)
protected class BatchBase<TDrawInfo>.DeviceResourceContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder- Inheritance
- 
      objectBatchBase<TDrawInfo>.DeviceResourceContext
- Implements
- Inherited Members
- Extension Methods
Constructors
DeviceResourceContext(GraphicsDevice, VertexDeclaration, ResourceBufferInfo)
public DeviceResourceContext(GraphicsDevice device, VertexDeclaration declaration, BatchBase<TDrawInfo>.ResourceBufferInfo resourceBufferInfo)Parameters
- deviceGraphicsDevice
- declarationVertexDeclaration
- resourceBufferInfoBatchBase<TDrawInfo>.ResourceBufferInfo
Fields
IndexBuffer
The index buffer of the batch.
public Buffer IndexBufferField Value
IndexBufferPosition
The current position in index into the index array buffer.
public int IndexBufferPositionField Value
IndexCount
Gets the number of indices.
public readonly int IndexCountField Value
InputElements
public readonly InputElementDescription[] InputElementsField Value
IsInImmediateMode
Indicate if the batch system is drawing in immediate mode for this buffer.
public bool IsInImmediateModeField Value
IsIndexBufferDynamic
Gets a boolean indicating if the index buffer is dynamic.
public readonly bool IsIndexBufferDynamicField Value
VertexBuffer
The vertex buffer of the batch.
public Buffer VertexBufferField Value
VertexBufferPosition
The current position in vertex into the vertex array buffer.
public int VertexBufferPositionField Value
VertexCount
Gets the number of vertices.
public readonly int VertexCountField Value
VertexDeclaration
public readonly VertexDeclaration VertexDeclaration