Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yuanming-hu/cpp-host-metal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Hosted Metal

Progress

  • newBufferWithBytesNoCopy:length:options:deallocator: working!
    • Pass the memory allocated by mmap().
    • Both ptr and length must be aligned to the page size. ptr's alignment is guaranteed by mmap(), but not length. So we have to manually round up length to page size.
  • The Metal compute pipeline works in C++ via objc-runtime.
    • Each line in the Metal compute kernel must be separated by \n.

About

Test if we can use Metal runtime in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published