MCPcopy Create free account
hub / github.com/aras-p/ToyPathTracer / create_buffer

Function create_buffer

Cpp/Emscripten/main.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9EMSCRIPTEN_KEEPALIVE
10extern "C" uint8_t* create_buffer(int width, int height)
11{
12 return (uint8_t*)malloc(width * height * 4);
13}
14
15EMSCRIPTEN_KEEPALIVE
16extern "C" void destroy_buffer(uint8_t* p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected