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

Function main

samples/cgpu/cgpu-basic/texture/tiled_texture.c:552–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552int main(int argc, char* argv[])
553{
554 if (SDL_Init(SDL_INIT_EVERYTHING) != 0) return -1;
555 // When we support more add them here
556#ifdef CGPU_USE_D3D12
557 ECGPUBackend backend = CGPU_BACKEND_D3D12;
558#else
559 ECGPUBackend backend = CGPU_BACKEND_VULKAN;
560#endif
561 ProgramMain(&backend);
562 SDL_Quit();
563
564 return 0;
565}

Callers

nothing calls this directly

Calls 1

ProgramMainFunction · 0.70

Tested by

no test coverage detected