Package icyllis.arc3d.granite
Class RootTask
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.task.Task
icyllis.arc3d.granite.RootTask
- All Implemented Interfaces:
RefCounted
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.task.Task
RESULT_DISCARD, RESULT_FAILURE, RESULT_SUCCESS
-
Constructor Summary
ConstructorDescriptionRootTask
(TaskList rootTaskList, it.unimi.dsi.fastutil.objects.ObjectArrayList<@SharedPtr Resource> extraResourceRefs) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Cleanup resources.int
execute
(ImmediateContext context, CommandBuffer commandBuffer) Add commands to command buffer onImmediateContext
.int
prepare
(RecordingContext context) Prepare resources onRecordingContext
using itsResourceProvider
.toString()
-
Constructor Details
-
RootTask
public RootTask(TaskList rootTaskList, it.unimi.dsi.fastutil.objects.ObjectArrayList<@SharedPtr Resource> extraResourceRefs)
-
-
Method Details
-
prepare
Description copied from class:Task
Prepare resources onRecordingContext
using itsResourceProvider
.If the task is directly added to the
ImmediateContext
, then this method will not be called. -
execute
Description copied from class:Task
Add commands to command buffer onImmediateContext
. TheResourceProvider
ofImmediateContext
can also be used to create resources. -
deallocate
protected void deallocate()Description copied from class:Task
Cleanup resources.- Overrides:
deallocate
in classTask
-
toString
-