BatchBase<TDrawInfo>.DeviceResourceContext Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Use a ResourceContext per GraphicsDevice (DeviceContext)
protected class DeviceResourceContext : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
              | Name | Description | |
|---|---|---|
| Constructors | ||
| DeviceResourceContext(GraphicsDevice, VertexDeclaration, BatchBase<TDrawInfo>.ResourceBufferInfo) | ||
| Fields | ||
| IndexBuffer | The index buffer of the batch.  | 
                          |
| IndexBufferPosition | The current position in index into the index array buffer.  | 
                          |
| IndexCount | Gets the number of indices.  | 
                          |
| InputElements | ||
| IsIndexBufferDynamic | Gets a boolean indicating if the index buffer is dynamic.  | 
                          |
| IsInImmediateMode | Indicate if the batch system is drawing in immediate mode for this buffer.  | 
                          |
| VertexBuffer | The vertex buffer of the batch.  | 
                          |
| VertexBufferPosition | The current position in vertex into the vertex array buffer.  | 
                          |
| VertexCount | Gets the number of vertices.  | 
                          |
| VertexDeclaration | ||
Constructors
DeviceResourceContext(GraphicsDevice, VertexDeclaration, BatchBase<TDrawInfo>.ResourceBufferInfo)
public DeviceResourceContext(GraphicsDevice device, VertexDeclaration declaration, BatchBase<TDrawInfo>.ResourceBufferInfo resourceBufferInfo)
              Parameters
| Type | Name | Description | 
|---|---|---|
| GraphicsDevice | device | |
| VertexDeclaration | declaration | |
| BatchBase.ResourceBufferInfo<> | resourceBufferInfo | 
Fields
IndexBuffer
The index buffer of the batch.
public Buffer IndexBuffer
              Field Value
| Type | Description | 
|---|---|
| Buffer | 
IndexBufferPosition
The current position in index into the index array buffer.
public int IndexBufferPosition
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
IndexCount
Gets the number of indices.
public readonly int IndexCount
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
InputElements
public readonly InputElementDescription[] InputElements
              Field Value
| Type | Description | 
|---|---|
| InputElementDescription[] | 
IsIndexBufferDynamic
Gets a boolean indicating if the index buffer is dynamic.
public readonly bool IsIndexBufferDynamic
              Field Value
| Type | Description | 
|---|---|
| System.Boolean | 
IsInImmediateMode
Indicate if the batch system is drawing in immediate mode for this buffer.
public bool IsInImmediateMode
              Field Value
| Type | Description | 
|---|---|
| System.Boolean | 
VertexBuffer
The vertex buffer of the batch.
public Buffer VertexBuffer
              Field Value
| Type | Description | 
|---|---|
| Buffer | 
VertexBufferPosition
The current position in vertex into the vertex array buffer.
public int VertexBufferPosition
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
VertexCount
Gets the number of vertices.
public readonly int VertexCount
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
VertexDeclaration
public readonly VertexDeclaration VertexDeclaration
              Field Value
| Type | Description | 
|---|---|
| VertexDeclaration |