| 69 | GlBuffer::~GlBuffer() { Invalidate(); } |
| 70 | |
| 71 | void GlBuffer::Invalidate() { |
| 72 | if (has_ownership_ && id_ != GL_INVALID_INDEX) { |
| 73 | TFLITE_GPU_CALL_GL(glDeleteBuffers, 1, &id_).IgnoreError(); |
| 74 | id_ = GL_INVALID_INDEX; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | Status GlBuffer::BindToIndex(uint32_t index) const { |
| 79 | return TFLITE_GPU_CALL_GL(glBindBufferRange, target_, index, id_, offset_, |
nothing calls this directly
no test coverage detected