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

Method DefaultTextureView

src/gpu/resources/DefaultTextureView.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace tgfx {
23DefaultTextureView::DefaultTextureView(std::unique_ptr<GPUTexture> texture, ImageOrigin origin)
24 : TextureView(origin), _texture(std::move(texture)) {
25}
26
27size_t DefaultTextureView::memoryUsage() const {
28 if (auto hardwareBuffer = _texture->getHardwareBuffer()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected