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
 
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() [1/2]

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

Convenience constructor to pass a single object as an argument.

◆ DataArg() [2/2]

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

Convenience constructor to pass a single object as an argument.

Member Function Documentation

◆ begin() [1/2]

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

◆ begin() [2/2]

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

◆ end() [1/2]

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

◆ end() [2/2]

constexpr 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 files: