| 317 | /// \brief Return the buffer's mutable data as a span |
| 318 | template <typename T> |
| 319 | std::span<T> mutable_span_as() { |
| 320 | return std::span(mutable_data_as<T>(), static_cast<size_t>(size() / sizeof(T))); |
| 321 | } |
| 322 | |
| 323 | /// \brief Return the device address of the buffer's data |
| 324 | uintptr_t address() const { return reinterpret_cast<uintptr_t>(data_); } |