MCPcopy Create free account
hub / github.com/a2flo/floor / device_buffer

Method device_buffer

include/floor/device/device_buffer.hpp:190–195  ·  view source on GitHub ↗

constructs a buffer of the specified size, using the host pointer as specified by the flags

Source from the content-addressed store, hash-verified

188
189 //! constructs a buffer of the specified size, using the host pointer as specified by the flags
190 device_buffer(const device_queue& cqueue,
191 std::span<uint8_t> host_data_,
192 const MEMORY_FLAG flags_ = (MEMORY_FLAG::READ_WRITE |
193 MEMORY_FLAG::HOST_READ_WRITE),
194 device_buffer* shared_buffer_ = nullptr) :
195 device_buffer(cqueue, host_data_.size_bytes(), host_data_, flags_, shared_buffer_) {}
196
197 //! constructs an uninitialized buffer of the specified size
198 device_buffer(const device_queue& cqueue,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected