BatchBase<TDrawInfo>.ElementInfo Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
The structure containing all the information required to batch one element.
protected struct ElementInfo
              | Name | Description | |
|---|---|---|
| Constructors | ||
| ElementInfo(Int32, Int32, in TDrawInfo, Single) | ||
| Fields | ||
| Depth | The depth of the element. Used to sort the elements.  | 
                          |
| DrawInfo | The user draw information.  | 
                          |
| IndexCount | The number of indices needed to draw the element.  | 
                          |
| VertexCount | The number of vertex needed to draw the element.  | 
                          |
Constructors
ElementInfo(Int32, Int32, in TDrawInfo, Single)
public ElementInfo(int vertexCount, int indexCount, in TDrawInfo drawInfo, float depth = 0F)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | vertexCount | |
| System.Int32 | indexCount | |
| TDrawInfo | drawInfo | |
| System.Single | depth | 
Fields
Depth
The depth of the element. Used to sort the elements.
public float Depth
              Field Value
| Type | Description | 
|---|---|
| System.Single | 
DrawInfo
The user draw information.
public TDrawInfo DrawInfo
              Field Value
| Type | Description | 
|---|---|
| TDrawInfo | 
IndexCount
The number of indices needed to draw the element.
public int IndexCount
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
VertexCount
The number of vertex needed to draw the element.
public int VertexCount
              Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Inherited Members
                  System.ValueType.Equals(System.Object)
                
                
                  System.ValueType.GetHashCode()
                
                
                  System.ValueType.ToString()