Add optional async scene drawing and improve stability

This commit is contained in:
Wojtek Figat
2022-11-11 15:47:33 +01:00
parent 881880fc34
commit b47d95205f
5 changed files with 20 additions and 5 deletions

View File

@@ -472,6 +472,11 @@ API_STRUCT(NoDefault) struct RenderContextBatch
/// </summary>
API_FIELD() Array<uint64, InlinedAllocation<8>> WaitLabels;
/// <summary>
/// Enables using async tasks via Job System when performing drawing.
/// </summary>
API_FIELD() bool EnableAsync = true;
RenderContextBatch() = default;
RenderContextBatch(SceneRenderTask* task);
RenderContextBatch(const RenderContext& context);