Package icyllis.arc3d.engine
Class QueueManager
java.lang.Object
icyllis.arc3d.engine.QueueManager
- Direct Known Subclasses:
GLQueueManager,VulkanQueueManager
A
QueueManager represents a GPU queue and manages a pool of command buffers
in that queue.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidprotected abstract CommandBuffercreateNewCommandBuffer(ResourceProvider resourceProvider) voidBlocks the current thread and waits for queue to finish outstanding works.intbooleanReturns true if there is any unfinished GPU work.protected booleanprepareCommandBuffer(ResourceProvider resourceProvider) booleansubmit()
-
Field Details
-
mContext
-
mCurrentCommandBuffer
-
-
Constructor Details
-
QueueManager
-
-
Method Details
-
addTask
-
submit
public boolean submit() -
getMaxCommandBuffers
public int getMaxCommandBuffers() -
hasOutstandingWork
public boolean hasOutstandingWork()Returns true if there is any unfinished GPU work. -
finishOutstandingWork
public void finishOutstandingWork()Blocks the current thread and waits for queue to finish outstanding works. -
checkForFinishedWork
public void checkForFinishedWork() -
prepareCommandBuffer
-
createNewCommandBuffer
-