MCPcopy Create free account
hub / github.com/Ipotrick/Daxa / buffer_device_address_to_buffer

Method buffer_device_address_to_buffer

src/cpp_wrapper.cpp:572–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570 }
571
572 auto Device::buffer_device_address_to_buffer(DeviceAddress address) -> Optional<BufferOffsetPair>
573 {
574 daxa_BufferOffsetPair id_offset_pair = {};
575 auto result = daxa_dvc_buffer_device_address_to_buffer(r_cast<daxa_Device>(this->object), std::bit_cast<daxa_DeviceAddress>(address), &id_offset_pair);
576 if (result == DAXA_RESULT_SUCCESS)
577 {
578 return std::bit_cast<BufferOffsetPair>(id_offset_pair);
579 }
580 return {};
581 }
582
583 void Device::copy_memory_to_image(MemoryToImageCopyInfo const & info)
584 {

Callers 1

resource_viewer_uiFunction · 0.80

Tested by

no test coverage detected