Contents

struct

SushiRuntime::Out

template <typename T>

A kernel argument captured for write, with auto dependency tracking.

Declared in
include/SushiRuntime/api/vocabulary/captures.hpp

Template parameters

T

Element type of the wrapped buffer.

Public attributes

T * ptr

Element pointer handed to the kernel.

void * key

Write dependency key for this argument.

Core::LivenessObserver life

Observer of the captured buffer's lifetime.

Static public attributes

static constexpr bool reads = false

Contributes no read key.

static constexpr bool writes = true

Contributes a write key.

Public member functions

Out(Buffer< T > &b)

Captures b as a write-only kernel argument.

Parameters

b

Buffer to write; must outlive every run that uses the task.