Class function¶
Defined in File function.hpp
Inheritance Relationships¶
Base Type¶
public legion::core::compute::function_base
(Class function_base)
Class Documentation¶
-
class
legion::core::compute
::
function
: public legion::core::compute::function_base¶ Public Functions
-
inline
function
(std::string name)¶
-
function
() = default¶
-
template<typename ...
Args
>
inline common::result<void, void>operator()
(std::variant<size_type, math::ivec2, math::ivec3> dispatch_size, Args&&... args)¶ Invokes the wrapped kernel with the passed buffers.
- Return
Ok() if the kernel succeeded or Err() otherwise
- Parameters
dispatch_size
: How many items to process.args
: a collection of either vectors and wrapped vectors or compute::Buffers
-
inline bool
isValid
() const¶
Public Static Functions
-
static inline void
from_resource
(function *value, const filesystem::basic_resource &resource)¶
-
inline