struct
SushiRuntime::InOut
template <typename T>A kernel argument captured for read-modify-write tracking.
- Declared in
include/SushiRuntime/api/vocabulary/captures.hpp
Template parameters
TElement type of the wrapped buffer.
Public attributes
T * ptrElement pointer handed to the kernel.
void * keyDependency key counted as both read and write.
Core::LivenessObserver lifeObserver of the captured buffer's lifetime.
Static public attributes
static constexpr bool reads = trueContributes a read key.
static constexpr bool writes = trueContributes a write key.
Public member functions
InOut(Buffer< T > &b)Captures b as a read-and-write kernel argument.
Parameters
bBuffer read and written in place; must outlive every run that uses the task.

