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

Method ComputeTextureKey

src/gpu/resources/TextureView.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void TextureView::ComputeTextureKey(const GPUTexture* texture, BytesKey* bytesKey) {
44 DEBUG_ASSERT(texture != nullptr);
45 bytesKey->write(static_cast<uint32_t>(texture->format()) << 16 |
46 static_cast<uint32_t>(texture->type()));
47}
48
49static ScratchKey ComputeTextureScratchKey(int width, int height, PixelFormat format,
50 bool mipmapped) {

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
formatMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected