PXL
pxl::KernelTraits< Func > Struct Template Reference

Traits class that maps a kernel function pointer to its name string. More...

Detailed Description

template<auto Func>
struct pxl::KernelTraits< Func >

Traits class that maps a kernel function pointer to its name string.

This template is intentionally left undefined. pxcc generates explicit specializations for each compiled kernel, providing the name member. Using an unregistered kernel function will produce a compile-time error.

pxcc-generated specialization example:

template <>
struct pxl::KernelTraits<vectorAdd> {
static constexpr const char* name = "vectorAdd";
};
Traits class that maps a kernel function pointer to its name string.
Definition: module.hpp:30

Definition at line 30 of file module.hpp.


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