public class DummyTexturePool extends BaseResourcePool<java.lang.Object> implements TextureResourcePool<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static DummyTexturePool |
instance |
Modifier | Constructor and Description |
---|---|
private |
DummyTexturePool() |
Modifier and Type | Method and Description |
---|---|
long |
estimateRTTextureSize(int width,
int height,
boolean hasDepth) |
long |
estimateTextureSize(int width,
int height,
PixelFormat format) |
long |
size(java.lang.Object resource)
The estimated size of the indicated resource.
|
cleanup, freeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, printSummary, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, target, used
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
freeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, target, used
public static final DummyTexturePool instance
public long size(java.lang.Object resource)
ResourcePool
size
in interface ResourcePool<java.lang.Object>
resource
- the resource to be measuredpublic long estimateTextureSize(int width, int height, PixelFormat format)
estimateTextureSize
in interface TextureResourcePool<java.lang.Object>
public long estimateRTTextureSize(int width, int height, boolean hasDepth)
estimateRTTextureSize
in interface TextureResourcePool<java.lang.Object>