Home
last modified time | relevance | path

Searched refs:OpenGlBuffer (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/
Dconverter.cc34 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO()
140 auto output = absl::get_if<OpenGlBuffer>(&output_obj); in Convert()
144 auto input = absl::get_if<OpenGlBuffer>(&input_obj); in Convert()
235 auto output = absl::get_if<OpenGlBuffer>(&output_obj); in Convert()
239 auto input = absl::get_if<OpenGlBuffer>(&input_obj); in Convert()
284 auto ssbo_input = absl::get_if<OpenGlBuffer>(&input_obj); in Convert()
285 auto ssbo_output = absl::get_if<OpenGlBuffer>(&output_obj); in Convert()
292 absl::Status Copy(OpenGlBuffer input, OpenGlBuffer output) { in Copy()
321 auto ssbo_output = absl::get_if<OpenGlBuffer>(&output_obj); in Convert()
330 auto ssbo_input = absl::get_if<OpenGlBuffer>(&input_obj); in Convert()
Dconverter_test.cc80 RETURN_IF_ERROR(converter->Convert(OpenGlBuffer{input_buffer.id()}, in RunFromTensorTest()
81 OpenGlBuffer{output_buffer.id()})); in RunFromTensorTest()
137 RETURN_IF_ERROR(converter->Convert(OpenGlBuffer{input_buffer.id()}, in RunToTensorTest()
138 OpenGlBuffer{output_buffer.id()})); in RunToTensorTest()
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dapi.h83 struct OpenGlBuffer { struct
84 OpenGlBuffer() = default;
85 explicit OpenGlBuffer(GLuint new_id) : id(new_id) {} in OpenGlBuffer() function
232 absl::variant<absl::monostate, OpenGlBuffer, OpenGlTexture, CpuMemory,
Dapi.cc24 ObjectType operator()(OpenGlBuffer) const { return ObjectType::OPENGL_SSBO; } in operator ()()
45 bool operator()(OpenGlBuffer obj) const { return obj.id != GL_INVALID_INDEX; } in operator ()()
85 return absl::holds_alternative<OpenGlBuffer>(obj); in IsObjectPresent()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dgl_interop.cc273 if (absl::holds_alternative<OpenGlBuffer>(input_obj)) { in Convert()
274 auto ssbo = absl::get_if<OpenGlBuffer>(&input_obj); in Convert()
288 auto ssbo = absl::get_if<OpenGlBuffer>(&output_obj); in Convert()
Dgpu_api_delegate.cc246 OpenGlBuffer buffer; in BindGlBufferToTensor()
Dapi.cc328 auto ssbo = absl::get_if<OpenGlBuffer>(&obj); in SetExternalObject()
332 auto old_ssbo = absl::get_if<OpenGlBuffer>(&external_obj_); in SetExternalObject()
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dapi2.cc53 absl::Status WrapSSBO(OpenGlBuffer ssbo, GlBuffer* buffer) { in WrapSSBO()
149 auto ssbo = absl::get_if<OpenGlBuffer>(&obj); in SetExternalObject()
232 internal_obj_ = OpenGlBuffer{ssbo.id()}; in MaybeAllocateInternalObject()
254 external_obj_ = OpenGlBuffer{external_ssbo_.id()}; in MaybeAllocateExternalObject()
256 RETURN_IF_ERROR(WrapSSBO(OpenGlBuffer{external_ssbo_.id()}, &bbb)); in MaybeAllocateExternalObject()