Nebula
Loading...
Searching...
No Matches
Jobs2::Lambda Struct Reference

#include <jobs2.h>

Public Types

using Stub = CallableStub<SizeT, SizeT, IndexT, SizeT>

Public Member Functions

template<typename LAMBDA>
 Lambda (LAMBDA l)
void operator() (SizeT totalJobs, SizeT groupSize, IndexT groupIndex, SizeT invocationOffset)
void Destroy ()
 destroy the captured state, the memory itself belongs to the job scratch buffer

Public Attributes

Stub * callable

Member Typedef Documentation

◆ Stub

Constructor & Destructor Documentation

◆ Lambda()

template<typename LAMBDA>
Jobs2::Lambda::Lambda ( LAMBDA l)
inline

Member Function Documentation

◆ Destroy()

void Jobs2::Lambda::Destroy ( )
inline

destroy the captured state, the memory itself belongs to the job scratch buffer

◆ operator()()

void Jobs2::Lambda::operator() ( SizeT totalJobs,
SizeT groupSize,
IndexT groupIndex,
SizeT invocationOffset )
inline

Member Data Documentation

◆ callable

Stub* Jobs2::Lambda::callable

The documentation for this struct was generated from the following file:
  • /github/workspace/code/foundation/jobs2/jobs2.h