MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / CMP_DestroyComputeLibrary

Function CMP_DestroyComputeLibrary

cmp_framework/compute_base.cpp:126–143  ·  view source on GitHub ↗

Closes the Compute library allocation

Source from the content-addressed store, hash-verified

124// Closes the Compute library allocation
125//
126CMP_ERROR CMP_API CMP_DestroyComputeLibrary(bool forceclose = false)
127{
128 if (g_ComputeBase && forceclose)
129 {
130 if (plugin_encoder_codec)
131 {
132 delete plugin_encoder_codec;
133 plugin_encoder_codec = NULL;
134 }
135
136 g_ComputeBase->TC_Close();
137 //free(g_ComputeBase);
138 delete g_ComputeBase;
139 g_ComputeBase = NULL;
140 }
141
142 return CMP_OK;
143}
144
145const CMP_CHAR* GetEncodeWithDesc(CMP_Compute_type nFormat)
146{

Callers 6

CMP_ConvertMipTextureCGPFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
exitingFunction · 0.85
CMP_CreateComputeLibraryFunction · 0.85
CMP_ProcessTextureFunction · 0.85

Calls 1

TC_CloseMethod · 0.45

Tested by 2

mainFunction · 0.68
mainFunction · 0.68