public class PboChain extends Object
| Constructor and Description |
|---|
PboChain(int numBufs,
int bufSize,
TextureCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Finalize a batch of cache tile uploads.
|
void |
init(bvv.core.cache.TextureCache.StagedTasks stagedTasks)
Initialize a new batch of cache tile uploads.
|
void |
maintain(GpuContext context)
Maps and unmaps Pbos and uploads to texture.
|
boolean |
ready() |
boolean |
tryActivate(GpuContext context)
Activate next Pbo if necessary and possible.
|
boolean |
tryUpload(GpuContext context)
Unmap and upload next Pbo if necessary.
|
public PboChain(int numBufs,
int bufSize,
TextureCache cache)
numBufs - number of PBOs to createbufSize - size in blocks of each PBOcache - texture to upload topublic void flush()
public boolean ready()
init(TextureCache.StagedTasks)?public void init(bvv.core.cache.TextureCache.StagedTasks stagedTasks)
throws InterruptedException
InterruptedExceptionpublic void maintain(GpuContext context) throws InterruptedException
InterruptedExceptionpublic boolean tryActivate(GpuContext context)
notEmpty if
Pbo is activated.public boolean tryUpload(GpuContext context)
Copyright © 2018–2025 BigDataViewer. All rights reserved.