MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / main

Function main

samples/cgpu/cgpu-basic/texture/texture.c:456–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456int main(int argc, char* argv[])
457{
458 if (SDL_Init(SDL_INIT_EVERYTHING) != 0) return -1;
459 // When we support more add them here
460#ifdef CGPU_USE_D3D12
461 ECGPUBackend backend = CGPU_BACKEND_D3D12;
462#else
463 ECGPUBackend backend = CGPU_BACKEND_VULKAN;
464#endif
465 ProgramMain(&backend);
466 SDL_Quit();
467
468 return 0;
469}

Callers

nothing calls this directly

Calls 1

ProgramMainFunction · 0.70

Tested by

no test coverage detected