nngn
Loading...
Searching...
No Matches
nngn::Compute::DataArg Struct Reference

Argument type for raw memory passed to the execution kernel "by value". More...

#include <compute.h>

Public Member Functions

template<typename T >
constexpr DataArg (const T *t)
 Convenience constructor to pass a single object as an argument.
 
constexpr auto begin () const
 
constexpr auto end () const
 

Public Attributes

std::size_t s = {}
 
const std::byte * p = {}
 

Detailed Description

Argument type for raw memory passed to the execution kernel "by value".

It differs from specifying a range of bytes (e.g. std::span<const std::byte>> in that the value will be forwarded directly as an argument, instead of being first copied to a temporary buffer.

Constructor & Destructor Documentation

◆ DataArg()

template<typename T >
nngn::Compute::DataArg::DataArg ( const T * t)
inlineexplicitconstexpr

Convenience constructor to pass a single object as an argument.

Member Function Documentation

◆ begin()

auto nngn::Compute::DataArg::begin ( ) const
inlineconstexpr

◆ end()

auto nngn::Compute::DataArg::end ( ) const
inlineconstexpr

Member Data Documentation

◆ p

const std::byte* nngn::Compute::DataArg::p = {}

◆ s

std::size_t nngn::Compute::DataArg::s = {}

The documentation for this struct was generated from the following file: