| 114 | } |
| 115 | |
| 116 | void 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 | |
| 123 | Status GlTexture::BindImage(uint32_t index, GLenum access) const { |
| 124 | return TFLITE_GPU_CALL_GL(glBindImageTexture, index, id_, /* level = */ 0, |
nothing calls this directly
no test coverage detected