| 556 | } |
| 557 | |
| 558 | auto Device::buffer_host_address(BufferId id) const -> Optional<std::byte *> |
| 559 | { |
| 560 | std::byte * ret = nullptr; |
| 561 | auto result = daxa_dvc_buffer_host_address( |
| 562 | rc_cast<daxa_Device>(this->object), |
| 563 | static_cast<daxa_BufferId>(id), |
| 564 | r_cast<void **>(&ret)); |
| 565 | if (result == DAXA_RESULT_SUCCESS) |
| 566 | { |
| 567 | return {ret}; |
| 568 | } |
| 569 | return {}; |
| 570 | } |
| 571 | |
| 572 | auto Device::buffer_device_address_to_buffer(DeviceAddress address) -> Optional<BufferOffsetPair> |
| 573 | { |
no test coverage detected