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

Function cgpu_unmap_buffer

modules/engine/graphics/src/common/cgpu.c:1054–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void cgpu_unmap_buffer(CGPUBufferId buffer)
1055{
1056 cgpu_assert(buffer != CGPU_NULLPTR && "fatal: call on NULL buffer!");
1057 const CGPUDeviceId device = buffer->device;
1058 cgpu_assert(device != CGPU_NULLPTR && "fatal: call on NULL device!");
1059 cgpu_assert(device->proc_table_cache->unmap_buffer && "unmap_buffer Proc Missing!");
1060
1061 CGPUProcUnmapBuffer fn_unmap_buffer = device->proc_table_cache->unmap_buffer;
1062 fn_unmap_buffer(buffer);
1063}
1064
1065void cgpu_free_buffer(CGPUBufferId buffer)
1066{

Callers 3

ComputeFuncFunction · 0.85
test_allMethod · 0.85
test_allMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_allMethod · 0.68
test_allMethod · 0.68