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

Function CMP_SetComputeOptions

cmp_framework/compute_base.cpp:404–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404CMP_ERROR CMP_API CMP_SetComputeOptions(ComputeOptions* options)
405{
406 options->plugin_compute = plugin_encoder_codec;
407 if (g_ComputeBase)
408 {
409 g_ComputeBase->TC_SetComputeOptions(options);
410 }
411 else
412 return CMP_ERR_UNABLE_TO_INIT_COMPUTELIB;
413
414 return CMP_OK;
415}
416
417//===========================================================================================================
418// This is a high level API that locks calling thread with mutex, blocking if necessary until completed

Callers 4

CMP_ConvertMipTextureCGPFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
CMP_ProcessTextureFunction · 0.85

Calls 1

TC_SetComputeOptionsMethod · 0.45

Tested by 2

mainFunction · 0.68
mainFunction · 0.68