struct
SushiRuntime::API::In
template <typename T>Wraps a Buffer captured for read so add() registers it and passes its pointer.
- Declared in
include/SushiRuntime/api/vocabulary/captures.hpp
See also
include/SushiRuntime/api/vocabulary/README.md
Public attributes
const T * ptrElement pointer handed to the kernel.
void * keyRead dependency key for this argument.
Core::LivenessObserver lifeObserver of the captured buffer's lifetime.
Static public attributes
static constexpr bool reads = trueContributes a read key.
static constexpr bool writes = falseContributes no write key.
Public member functions
In(const Buffer< T > &b)Captures b as a read-only kernel argument.
Parameters
bBuffer to read; must outlive every run that uses the task.

