Class RenderList
Rendering cache container object for the draw calls collecting, sorting and executing.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class RenderList : Object
Constructors
RenderList()
Methods
ExecuteDrawCalls(ref RenderContext, DrawCallsListType, GPUTextureView)
Executes the collected draw calls.
Declaration
[Unmanaged]
public void ExecuteDrawCalls(ref RenderContext renderContext, DrawCallsListType listType, GPUTextureView input = null)
Parameters
RenderContext
renderContext
The rendering context. |
DrawCallsListType
listType
The collected draw calls list type. |
GPUTextureView
input
The input scene color. It's optional and used in forward/postFx rendering. |
GetFromPool()
Allocates the new renderer list object or reuses already allocated one.
Declaration
[Unmanaged]
public static RenderList GetFromPool()
Returns
RenderList
The cache object. |
ReturnToPool(RenderList)
Frees the list back to the pool.
Declaration
[Unmanaged]
public static void ReturnToPool(RenderList cache)
Parameters
RenderList
cache
The cache. |
SortDrawCalls(ref RenderContext, Boolean, DrawCallsListType, DrawPass)
Sorts the collected draw calls list.
Declaration
[Unmanaged]
public void SortDrawCalls(ref RenderContext renderContext, bool reverseDistance, DrawCallsListType listType, DrawPass pass)
Parameters
RenderContext
renderContext
The rendering context. |
System.Boolean
reverseDistance
If set to |
DrawCallsListType
listType
The collected draw calls list type. |
DrawPass
pass
The draw pass (optional). |