Contents

struct

SushiRuntime::API::ElementRange

A half-open element range [offset, offset + count) into a handle.

Declared in
include/SushiRuntime/api/data/buffer.hpp

Names a window of a Buffer or State for the transfer and sub-region calls. Bundling the two counts into one named value keeps a caller from passing them in the wrong order — the failure a pair of bare std::size_t arguments invites. Counts are in elements, not bytes.

Public attributes

std::size_t offset = 0

First element of the range.

std::size_t count = 0

Number of elements in the range.