class SWTexturePool extends BaseResourcePool<SWTexture> implements TextureResourcePool<SWTexture>
| Modifier and Type | Field and Description |
|---|---|
(package private) static SWTexturePool |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
SWTexturePool() |
| Modifier and Type | Method and Description |
|---|---|
long |
estimateRTTextureSize(int width,
int height,
boolean hasDepth) |
long |
estimateTextureSize(int width,
int height,
PixelFormat format) |
private static long |
maxVram() |
long |
size(SWTexture resource)
The estimated size of the indicated resource.
|
private static long |
targetVram() |
long |
used()
The amount of a resource currently being used to hold any kind of
resource, whether managed or not.
|
cleanup, freeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, printSummary, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, targetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfreeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, targetstatic final SWTexturePool instance
private static long maxVram()
private static long targetVram()
public long used()
ResourcePoolused in interface ResourcePool<SWTexture>used in class BaseResourcePool<SWTexture>public long size(SWTexture resource)
ResourcePoolsize in interface ResourcePool<SWTexture>resource - the resource to be measuredpublic long estimateTextureSize(int width,
int height,
PixelFormat format)
estimateTextureSize in interface TextureResourcePool<SWTexture>public long estimateRTTextureSize(int width,
int height,
boolean hasDepth)
estimateRTTextureSize in interface TextureResourcePool<SWTexture>