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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
protected abstract CommandBuffer
createNewCommandBuffer
(ResourceProvider resourceProvider) void
Blocks the current thread and waits for queue to finish outstanding works.int
boolean
Returns true if there is any unfinished GPU work.protected boolean
prepareCommandBuffer
(ResourceProvider resourceProvider) boolean
submit()
-
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
-