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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCleanup resources.abstract intexecute(ImmediateContext context, CommandBuffer commandBuffer) Add commands to command buffer onImmediateContext.abstract intprepare(RecordingContext context) Prepare resources onRecordingContextusing 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 onRecordingContextusing itsResourceProvider.If the task is directly added to the
ImmediateContext, then this method will not be called. -
execute
Add commands to command buffer onImmediateContext. TheResourceProviderofImmediateContextcan also be used to create resources. -
deallocate
protected void deallocate()Cleanup resources.- Specified by:
deallocatein classRefCnt
-