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

Function CreateOptionsBC1

cmp_core/shaders/bc1_encode_kernel.cpp:222–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220//============================================== CPU INTERFACES ========================================================
221#ifndef ASPM_GPU
222int CMP_CDECL CreateOptionsBC1(void** options)
223{
224 CMP_BC15Options* BC15optionsDefault = new CMP_BC15Options;
225 if (BC15optionsDefault)
226 {
227 SetDefaultBC15Options(BC15optionsDefault);
228 (*options) = BC15optionsDefault;
229 }
230 else
231 {
232 (*options) = NULL;
233 return CGU_CORE_ERR_NEWMEM;
234 }
235 return CGU_CORE_OK;
236}
237
238int CMP_CDECL DestroyOptionsBC1(void* options)
239{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68