Package icyllis.arc3d.engine.task
Class Task
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.task.Task
- All Implemented Interfaces:
RefCounted
- Direct Known Subclasses:
CopyBufferTask
,CopyImageTask
,DrawTask
,ImageUploadTask
,RenderPassTask
,RootTask
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Cleanup resources.abstract int
execute
(ImmediateContext context, CommandBuffer commandBuffer) Add commands to command buffer onImmediateContext
.abstract int
prepare
(RecordingContext context) Prepare resources onRecordingContext
using itsResourceProvider
.
-
Field Details
-
RESULT_SUCCESS
public static final int RESULT_SUCCESS- See Also:
-
RESULT_FAILURE
public static final int RESULT_FAILURE- See Also:
-
RESULT_DISCARD
public static final int RESULT_DISCARD- See Also:
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
prepare
Prepare resources onRecordingContext
using itsResourceProvider
.If the task is directly added to the
ImmediateContext
, then this method will not be called. -
execute
Add commands to command buffer onImmediateContext
. TheResourceProvider
ofImmediateContext
can also be used to create resources. -
deallocate
protected void deallocate()Cleanup resources.- Specified by:
deallocate
in classRefCnt
-