Package icyllis.arc3d.engine.task
Class ImageUploadTask
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.task.Task
icyllis.arc3d.engine.task.ImageUploadTask
- All Implemented Interfaces:
RefCounted
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.task.Task
RESULT_DISCARD, RESULT_FAILURE, RESULT_SUCCESS
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Cleanup resources.int
execute
(ImmediateContext context, CommandBuffer commandBuffer) Add commands to command buffer onImmediateContext
.static @SharedPtr ImageUploadTask
make
(RecordingContext context, @SharedPtr ImageViewProxy imageViewProxy, int srcColorType, int srcAlphaType, ColorSpace srcColorSpace, int dstColorType, int dstAlphaType, ColorSpace dstColorSpace, ImageUploadTask.MipLevel[] levels, Rect2ic dstRect, ImageUploadTask.UploadCondition condition) int
prepare
(RecordingContext context) Prepare resources onRecordingContext
using itsResourceProvider
.
-
Method Details
-
uploadOnce
-
make
@Nullable @SharedPtr public static @SharedPtr ImageUploadTask make(RecordingContext context, @SharedPtr @SharedPtr ImageViewProxy imageViewProxy, int srcColorType, int srcAlphaType, ColorSpace srcColorSpace, int dstColorType, int dstAlphaType, ColorSpace dstColorSpace, ImageUploadTask.MipLevel[] levels, Rect2ic dstRect, ImageUploadTask.UploadCondition condition) -
deallocate
protected void deallocate()Description copied from class:Task
Cleanup resources.- Overrides:
deallocate
in classTask
-
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.
-