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

Function cgpu_free_surface

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

Source from the content-addressed store, hash-verified

1367}
1368
1369void cgpu_free_surface(CGPUDeviceId device, CGPUSurfaceId surface)
1370{
1371 cgpu_assert(device != CGPU_NULLPTR && "fatal: call on NULL device!");
1372 cgpu_assert(device->adapter != CGPU_NULLPTR && "fatal: call on NULL adapter!");
1373 cgpu_assert(device->adapter->instance != CGPU_NULLPTR && "fatal: call on NULL instnace!");
1374 cgpu_assert(device->adapter->instance->surfaces_table != CGPU_NULLPTR && "surfaces_table Missing!");
1375 cgpu_assert(device->adapter->instance->surfaces_table->free_surface != CGPU_NULLPTR && "free_instance Proc Missing!");
1376
1377 device->adapter->instance->surfaces_table->free_surface(device, surface);
1378 return;
1379}
1380
1381// dstraoge
1382ECGPUDStorageAvailability cgpu_query_dstorage_availability(CGPUDeviceId device)

Callers 15

finalizeMethod · 0.85
imguir_destroy_windowFunction · 0.85
~SkrRenderWindowMethod · 0.85
finalizeFunction · 0.85
finalizeFunction · 0.85
finalizeFunction · 0.85
finalizeFunction · 0.85
finalizeMethod · 0.85
finalizeMethod · 0.85
finalizeFunction · 0.85
finalizeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_allMethod · 0.68