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

Function cgpu_map_buffer

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

Source from the content-addressed store, hash-verified

1041}
1042
1043void cgpu_map_buffer(CGPUBufferId buffer, const struct CGPUBufferRange* range)
1044{
1045 cgpu_assert(buffer != CGPU_NULLPTR && "fatal: call on NULL buffer!");
1046 const CGPUDeviceId device = buffer->device;
1047 cgpu_assert(device != CGPU_NULLPTR && "fatal: call on NULL device!");
1048 cgpu_assert(device->proc_table_cache->map_buffer && "map_buffer Proc Missing!");
1049
1050 CGPUProcMapBuffer fn_map_buffer = device->proc_table_cache->map_buffer;
1051 fn_map_buffer(buffer, range);
1052}
1053
1054void cgpu_unmap_buffer(CGPUBufferId buffer)
1055{

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