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