MCPcopy Create free account
hub / github.com/defold/defold / deinit

Method deinit

engine/dlib/src/basis/encoder/basisu_opencl.cpp:170–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 bool deinit()
171 {
172 if (m_program)
173 {
174 clReleaseProgram(m_program);
175 m_program = nullptr;
176 }
177
178 if (m_command_queue)
179 {
180 clReleaseCommandQueue(m_command_queue);
181 m_command_queue = nullptr;
182 }
183
184 if (m_context)
185 {
186 clReleaseContext(m_context);
187 m_context = nullptr;
188 }
189
190 m_device_id = nullptr;
191
192 return true;
193 }
194
195 cl_command_queue create_command_queue()
196 {

Callers 2

opencl_initFunction · 0.80
opencl_deinitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected