Package icyllis.arc3d.granite.task
Class Task
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.granite.task.Task
- All Implemented Interfaces:
RefCounted,Task
- Direct Known Subclasses:
CopyBufferTask,CopyImageTask,DrawTask,ImageUploadTask,RenderPassTask
-
Field Summary
Fields inherited from interface icyllis.arc3d.engine.Task
RESULT_DISCARD, RESULT_FAILURE, RESULT_SUCCESS -
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.
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
prepare
Prepare resources onRecordingContextusing itsResourceProvider. -
execute
Add commands to command buffer onImmediateContext. TheResourceProviderofImmediateContextcan also be used to create resources. -
deallocate
protected void deallocate()Cleanup resources.- Specified by:
deallocatein classRefCnt
-