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

Function CreateOptionsBC2

cmp_core/shaders/bc2_encode_kernel.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61#ifndef ASPM_GPU
62
63int CMP_CDECL CreateOptionsBC2(void** options)
64{
65 CMP_BC15Options* BC15optionsDefault = new CMP_BC15Options;
66 if (BC15optionsDefault)
67 {
68 SetDefaultBC15Options(BC15optionsDefault);
69 (*options) = BC15optionsDefault;
70 }
71 else
72 {
73 (*options) = NULL;
74 return CGU_CORE_ERR_NEWMEM;
75 }
76 return CGU_CORE_OK;
77}
78
79int CMP_CDECL DestroyOptionsBC2(void* options)
80{

Callers 1

mainFunction · 0.85

Calls 1

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68