|
nngn
|
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 = {} |
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.
Convenience constructor to pass a single object as an argument.
|
inlineconstexpr |
|
inlineconstexpr |
| const std::byte* nngn::Compute::DataArg::p = {} |
| std::size_t nngn::Compute::DataArg::s = {} |