MCPcopy Create free account
hub / github.com/Tencent/tgfx / cacheLimit

Method cacheLimit

src/gpu/ResourceCache.h:60–62  ·  view source on GitHub ↗

* Returns the size of the Context's gpu memory cache limit in bytes. The default value is 512MB. */

Source from the content-addressed store, hash-verified

58 * Returns the size of the Context's gpu memory cache limit in bytes. The default value is 512MB.
59 */
60 size_t cacheLimit() const {
61 return maxBytes;
62 }
63
64 /**
65 * Sets the size of the Context's gpu memory cache limit in bytes. If the new limit is lower than

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected