| 41 | } |
| 42 | |
| 43 | void 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 | |
| 49 | static ScratchKey ComputeTextureScratchKey(int width, int height, PixelFormat format, |
| 50 | bool mipmapped) { |