MCPcopy Create free account
hub / github.com/cocos/cocos-engine / free

Method free

native/cocos/renderer/core/TextureBufferPool.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void TextureBufferPool::free(const ITextureBufferHandle &handle) {
150 auto iter = std::find(_handles.begin(), _handles.end(), handle);
151 if (iter != _handles.end()) {
152 _chunks[handle.chunkIdx].end = handle.end;
153 _handles.erase(iter);
154 }
155}
156
157uint32_t TextureBufferPool::createChunk(uint32_t length) {
158 uint32_t texSize = length * length * _formatSize;

Callers

nothing calls this directly

Calls 4

endMethod · 0.65
findFunction · 0.50
beginMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected