Skip to content

nullhook/metal-compute-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metal-compute-nodejs

This is an experiment in which an extern C function has been created and compiled into a shared library. This shared library can be utilized by the new FFI function in Node.js, calling a Metal compute shader to perform an addition operation. The function can be executed by running the following command in the terminal

./node -p "require('node:ffi').getNativeFunction('./libmetal-compute.dylib', 'adder_gpu', 'float', ['float', 'float'])(1.0, 2.0)"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages