How to pass scalar parameter to a metal kernel function?

前端 未结 0 675
心在旅途
心在旅途 2020-12-30 00:17

I am new to metal. I want to use metal compute to do some math, so I create a kernel function (shader?), let\'s say

    kernel void foo(device float *data1,
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题