Package icyllis.arc3d.granite.task
Class ImageUploadTask
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.granite.task.Task
icyllis.arc3d.granite.task.ImageUploadTask
- All Implemented Interfaces:
RefCounted,Task
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
Fields inherited from interface icyllis.arc3d.engine.Task
RESULT_DISCARD, RESULT_FAILURE, RESULT_SUCCESS -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCleanup resources.intexecute(ImmediateContext context, CommandBuffer commandBuffer) Add commands to command buffer onImmediateContext.static @Nullable @SharedPtr ImageUploadTaskmake(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) intprepare(RecordingContext context) Prepare resources onRecordingContextusing itsResourceProvider.
-
Method Details
-
uploadOnce
-
make
@SharedPtr public static @Nullable @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:TaskCleanup resources.- Overrides:
deallocatein classTask
-
prepare
Description copied from class:TaskPrepare resources onRecordingContextusing itsResourceProvider. -
execute
Description copied from class:TaskAdd commands to command buffer onImmediateContext. TheResourceProviderofImmediateContextcan also be used to create resources.
-