nngn
|
Functions | |
template<typename T > | |
T | from_table_array (nngn::lua::table_view t) |
void | invalid_type (Type t) |
bool | check_size (const std::byte *p, lua_Integer n, std::span< const std::byte > s) |
bool | check_size (lua_Integer n, const bvec &v) |
auto | elem_size (Type t) |
template<typename T > | |
auto | read_table (const auto &t, lua_Integer i, lua_Integer n, std::byte *p) |
template<typename T > | |
auto | write_table (nngn::lua::table_view t, lua_Integer i, lua_Integer n, const T *p) |
template<typename T > | |
auto | write_table (nngn::lua::table_view t, lua_Integer i, lua_Integer n, const std::byte *p) |
map (Type t, auto &&sf, auto &&vf, auto &&of) | |
map_vector (Type t, auto &&def, auto &&f) | |
bool | to_bytes (Type type, nngn::lua::table_view t, bvec *v) |
auto | get_limits (Compute &c, nngn::lua::state_view lua) |
auto | create_vector (lua_Integer n) |
auto | vector_size (const bvec &v) |
auto | read_vector (bvec &v, lua_Integer off, lua_Integer n, Type type, nngn::lua::state_view lua) |
void | zero_vector (bvec *v, lua_Integer off, lua_Integer n) |
bool | fill_vector (bvec *v, lua_Integer off, lua_Integer n, Type type, nngn::lua::table_view t) |
void | copy_vector (bvec *dst, const bvec &src, lua_Integer dst_off, lua_Integer src_off, lua_Integer n) |
template<typename T > | |
auto | write_scalar_type (const auto &t, lua_Integer i, std::byte *p) |
template<typename T > | |
auto | write_vector_type (nngn::lua::table_view t, lua_Integer i, std::byte *p) |
bool | write_vector (bvec *v, lua_Integer off, nngn::lua::table_view t) |
auto | read_sizes (nngn::lua::table_view t) |
auto | read_events (const Compute &c, Compute::Events *events, std::span< const Compute::Type > types, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt) |
void | write_events (std::span< const Compute::Event *const > events, std::optional< nngn::lua::table_view > events_opt) |
auto | opt (const Compute::Handle &h) |
auto | create_buffer (Compute &c, Compute::MemFlag flags, Type type, lua_Integer n, const bvec *ov) |
bool | read_buffer (const Compute &c, lua_Integer b, Type type, lua_Integer n, bvec *v) |
bool | fill_buffer (const Compute &c, lua_Integer b, lua_Integer off, lua_Integer n, Type type, nngn::lua::table_view pattern_t, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt) |
bool | write_buffer (const Compute &c, lua_Integer b, lua_Integer off, lua_Integer n, Type type, const bvec &v) |
auto | create_image (Compute &c, Type type, lua_Integer w, lua_Integer h, Compute::MemFlag flags, const bvec *ov) |
auto | read_image (const Compute &c, lua_Integer i, lua_Integer w, lua_Integer h, Type type, bvec *v) |
bool | fill_image (const Compute &c, lua_Integer i, lua_Integer w, lua_Integer h, Type type, nngn::lua::table_view t) |
auto | create_sampler (Compute &c) |
auto | create_program (Compute &c, std::string_view src, const char *opts) |
std::optional< nngn::lua::table_view > | prof_info (const Compute &c, Compute::ProfInfo info, std::vector< const void * > events, nngn::lua::state_view lua) |
auto | wait (const Compute &c, std::vector< const void * > events) |
template<auto Compute::* f> | |
bool | release (Compute &c, lua_Integer id) |
bool | release_events (const Compute &c, std::vector< const void * > events) |
std::vector< std::size_t > | data_size (nngn::lua::table_view t) |
auto | read_data (nngn::lua::table_view t, auto *data_v) |
auto | create_kernel (Compute &c, lua_Integer program, const char *func, nngn::lua::table_view data, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt) |
bool | execute_kernel (Compute &c, lua_Integer kernel, Compute::ExecFlag flags, nngn::lua::table_view global_size, nngn::lua::table_view local_size, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt) |
bool | execute (Compute &c, lua_Integer program, const char *func, Compute::ExecFlag flags, nngn::lua::table_view global_size, nngn::lua::table_view local_size, nngn::lua::table_view data, std::optional< nngn::lua::value_view > wait_opt, std::optional< nngn::lua::table_view > events_opt) |
std::optional< Compute::OpenCLParameters > | opencl_params (nngn::lua::table_view t) |
void | register_compute (nngn::lua::table_view t) |
bool anonymous_namespace{lua_compute.cpp}::check_size | ( | const std::byte * | p, |
lua_Integer | n, | ||
std::span< const std::byte > | s ) |
void anonymous_namespace{lua_compute.cpp}::copy_vector | ( | bvec * | dst, |
const bvec & | src, | ||
lua_Integer | dst_off, | ||
lua_Integer | src_off, | ||
lua_Integer | n ) |
auto anonymous_namespace{lua_compute.cpp}::create_buffer | ( | Compute & | c, |
Compute::MemFlag | flags, | ||
Type | type, | ||
lua_Integer | n, | ||
const bvec * | ov ) |
auto anonymous_namespace{lua_compute.cpp}::create_image | ( | Compute & | c, |
Type | type, | ||
lua_Integer | w, | ||
lua_Integer | h, | ||
Compute::MemFlag | flags, | ||
const bvec * | ov ) |
auto anonymous_namespace{lua_compute.cpp}::create_kernel | ( | Compute & | c, |
lua_Integer | program, | ||
const char * | func, | ||
nngn::lua::table_view | data, | ||
std::optional< nngn::lua::value_view > | wait_opt, | ||
std::optional< nngn::lua::table_view > | events_opt ) |
auto anonymous_namespace{lua_compute.cpp}::create_program | ( | Compute & | c, |
std::string_view | src, | ||
const char * | opts ) |
auto anonymous_namespace{lua_compute.cpp}::create_sampler | ( | Compute & | c | ) |
auto anonymous_namespace{lua_compute.cpp}::create_vector | ( | lua_Integer | n | ) |
std::vector< std::size_t > anonymous_namespace{lua_compute.cpp}::data_size | ( | nngn::lua::table_view | t | ) |
auto anonymous_namespace{lua_compute.cpp}::elem_size | ( | Type | t | ) |
bool anonymous_namespace{lua_compute.cpp}::execute | ( | Compute & | c, |
lua_Integer | program, | ||
const char * | func, | ||
Compute::ExecFlag | flags, | ||
nngn::lua::table_view | global_size, | ||
nngn::lua::table_view | local_size, | ||
nngn::lua::table_view | data, | ||
std::optional< nngn::lua::value_view > | wait_opt, | ||
std::optional< nngn::lua::table_view > | events_opt ) |
bool anonymous_namespace{lua_compute.cpp}::execute_kernel | ( | Compute & | c, |
lua_Integer | kernel, | ||
Compute::ExecFlag | flags, | ||
nngn::lua::table_view | global_size, | ||
nngn::lua::table_view | local_size, | ||
std::optional< nngn::lua::value_view > | wait_opt, | ||
std::optional< nngn::lua::table_view > | events_opt ) |
bool anonymous_namespace{lua_compute.cpp}::fill_buffer | ( | const Compute & | c, |
lua_Integer | b, | ||
lua_Integer | off, | ||
lua_Integer | n, | ||
Type | type, | ||
nngn::lua::table_view | pattern_t, | ||
std::optional< nngn::lua::value_view > | wait_opt, | ||
std::optional< nngn::lua::table_view > | events_opt ) |
bool anonymous_namespace{lua_compute.cpp}::fill_image | ( | const Compute & | c, |
lua_Integer | i, | ||
lua_Integer | w, | ||
lua_Integer | h, | ||
Type | type, | ||
nngn::lua::table_view | t ) |
bool anonymous_namespace{lua_compute.cpp}::fill_vector | ( | bvec * | v, |
lua_Integer | off, | ||
lua_Integer | n, | ||
Type | type, | ||
nngn::lua::table_view | t ) |
T anonymous_namespace{lua_compute.cpp}::from_table_array | ( | nngn::lua::table_view | t | ) |
auto anonymous_namespace{lua_compute.cpp}::get_limits | ( | Compute & | c, |
nngn::lua::state_view | lua ) |
void anonymous_namespace{lua_compute.cpp}::invalid_type | ( | Type | t | ) |
anonymous_namespace{lua_compute.cpp}::map | ( | Type | t, |
auto && | sf, | ||
auto && | vf, | ||
auto && | of ) |
anonymous_namespace{lua_compute.cpp}::map_vector | ( | Type | t, |
auto && | def, | ||
auto && | f ) |
std::optional< Compute::OpenCLParameters > anonymous_namespace{lua_compute.cpp}::opencl_params | ( | nngn::lua::table_view | t | ) |
auto anonymous_namespace{lua_compute.cpp}::opt | ( | const Compute::Handle & | h | ) |
std::optional< nngn::lua::table_view > anonymous_namespace{lua_compute.cpp}::prof_info | ( | const Compute & | c, |
Compute::ProfInfo | info, | ||
std::vector< const void * > | events, | ||
nngn::lua::state_view | lua ) |
bool anonymous_namespace{lua_compute.cpp}::read_buffer | ( | const Compute & | c, |
lua_Integer | b, | ||
Type | type, | ||
lua_Integer | n, | ||
bvec * | v ) |
auto anonymous_namespace{lua_compute.cpp}::read_data | ( | nngn::lua::table_view | t, |
auto * | data_v ) |
auto anonymous_namespace{lua_compute.cpp}::read_events | ( | const Compute & | c, |
Compute::Events * | events, | ||
std::span< const Compute::Type > | types, | ||
std::optional< nngn::lua::value_view > | wait_opt, | ||
std::optional< nngn::lua::table_view > | events_opt ) |
auto anonymous_namespace{lua_compute.cpp}::read_image | ( | const Compute & | c, |
lua_Integer | i, | ||
lua_Integer | w, | ||
lua_Integer | h, | ||
Type | type, | ||
bvec * | v ) |
auto anonymous_namespace{lua_compute.cpp}::read_sizes | ( | nngn::lua::table_view | t | ) |
auto anonymous_namespace{lua_compute.cpp}::read_table | ( | const auto & | t, |
lua_Integer | i, | ||
lua_Integer | n, | ||
std::byte * | p ) |
auto anonymous_namespace{lua_compute.cpp}::read_vector | ( | bvec & | v, |
lua_Integer | off, | ||
lua_Integer | n, | ||
Type | type, | ||
nngn::lua::state_view | lua ) |
void anonymous_namespace{lua_compute.cpp}::register_compute | ( | nngn::lua::table_view | t | ) |
bool anonymous_namespace{lua_compute.cpp}::release | ( | Compute & | c, |
lua_Integer | id ) |
bool anonymous_namespace{lua_compute.cpp}::release_events | ( | const Compute & | c, |
std::vector< const void * > | events ) |
bool anonymous_namespace{lua_compute.cpp}::to_bytes | ( | Type | type, |
nngn::lua::table_view | t, | ||
bvec * | v ) |
auto anonymous_namespace{lua_compute.cpp}::wait | ( | const Compute & | c, |
std::vector< const void * > | events ) |
bool anonymous_namespace{lua_compute.cpp}::write_buffer | ( | const Compute & | c, |
lua_Integer | b, | ||
lua_Integer | off, | ||
lua_Integer | n, | ||
Type | type, | ||
const bvec & | v ) |
void anonymous_namespace{lua_compute.cpp}::write_events | ( | std::span< const Compute::Event *const > | events, |
std::optional< nngn::lua::table_view > | events_opt ) |
auto anonymous_namespace{lua_compute.cpp}::write_scalar_type | ( | const auto & | t, |
lua_Integer | i, | ||
std::byte * | p ) |
auto anonymous_namespace{lua_compute.cpp}::write_table | ( | nngn::lua::table_view | t, |
lua_Integer | i, | ||
lua_Integer | n, | ||
const std::byte * | p ) |
auto anonymous_namespace{lua_compute.cpp}::write_table | ( | nngn::lua::table_view | t, |
lua_Integer | i, | ||
lua_Integer | n, | ||
const T * | p ) |
bool anonymous_namespace{lua_compute.cpp}::write_vector | ( | bvec * | v, |
lua_Integer | off, | ||
nngn::lua::table_view | t ) |
auto anonymous_namespace{lua_compute.cpp}::write_vector_type | ( | nngn::lua::table_view | t, |
lua_Integer | i, | ||
std::byte * | p ) |
void anonymous_namespace{lua_compute.cpp}::zero_vector | ( | bvec * | v, |
lua_Integer | off, | ||
lua_Integer | n ) |