Package icyllis.arc3d.granite
Class RenderPassTask
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.task.Task
icyllis.arc3d.granite.RenderPassTask
- All Implemented Interfaces:
RefCounted
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.task.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 @SharedPtr RenderPassTaskmake(RecordingContext context, DrawPass drawPass, @SharedPtr ImageViewProxy colorTarget, @SharedPtr ImageViewProxy resolveTarget, byte loadOp, byte storeOp, float[] clearColor) All arguments must be immutable, except for clearColor.intprepare(RecordingContext context) Prepare resources onRecordingContextusing itsResourceProvider.
-
Method Details
-
make
@SharedPtr public static @SharedPtr RenderPassTask make(RecordingContext context, DrawPass drawPass, @SharedPtr @SharedPtr ImageViewProxy colorTarget, @SharedPtr @SharedPtr ImageViewProxy resolveTarget, byte loadOp, byte storeOp, float[] clearColor) All arguments must be immutable, except for clearColor. DrawPass is owned by this object. -
deallocate
protected void deallocate()Description copied from class:TaskCleanup resources.- Overrides:
deallocatein classTask
-
prepare
Description copied from class:TaskPrepare resources onRecordingContextusing itsResourceProvider.If the task is directly added to the
ImmediateContext, then this method will not be called. -
execute
Description copied from class:TaskAdd commands to command buffer onImmediateContext. TheResourceProviderofImmediateContextcan also be used to create resources.
-