MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Invalidate

Method Invalidate

tensorflow/lite/delegates/gpu/gl/gl_texture.cc:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void GlTexture::Invalidate() {
117 if (owned_ && id_ != GL_INVALID_INDEX) {
118 TFLITE_GPU_CALL_GL(glDeleteTextures, 1, &id_).IgnoreError();
119 id_ = GL_INVALID_INDEX;
120 }
121}
122
123Status GlTexture::BindImage(uint32_t index, GLenum access) const {
124 return TFLITE_GPU_CALL_GL(glBindImageTexture, index, id_, /* level = */ 0,

Callers

nothing calls this directly

Calls 1

IgnoreErrorMethod · 0.45

Tested by

no test coverage detected