| 1367 | } |
| 1368 | |
| 1369 | void 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 |
| 1382 | ECGPUDStorageAvailability cgpu_query_dstorage_availability(CGPUDeviceId device) |
no outgoing calls