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

Function CreateOptionsBC4

cmp_core/shaders/bc4_encode_kernel.cpp:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161#ifndef ASPM_GPU
162
163int CMP_CDECL CreateOptionsBC4(void** options)
164{
165 CMP_BC15Options* BC15optionsDefault = new CMP_BC15Options;
166 if (BC15optionsDefault)
167 {
168 SetDefaultBC15Options(BC15optionsDefault);
169 (*options) = BC15optionsDefault;
170 }
171 else
172 {
173 (*options) = NULL;
174 return CGU_CORE_ERR_NEWMEM;
175 }
176 return CGU_CORE_OK;
177}
178
179int CMP_CDECL DestroyOptionsBC4(void* options)
180{

Callers 1

mainFunction · 0.85

Calls 1

SetDefaultBC15OptionsFunction · 0.85

Tested by 1

mainFunction · 0.68