ios - 在 Metal 计算着色器中排序

标签 ios graphics gpgpu metal

Metal 是否具有类似于 CUDA 的 thrust::sort 的功能,或者是否需要编写自己的排序功能?

最佳答案

Apple 的 Accelerate 框架在 vDSP 包中有有用的矢量运算。具体来说,可以在此处找到排序。

https://developer.apple.com/documentation/accelerate/vdsp/reversing_and_sorting_functions

关于ios - 在 Metal 计算着色器中排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35656460/

相关文章:

ios - scrollToRowAtIndexPath :atScrollPosition causing table view to "jump"

ios - NSError 为 nil 但进入 not nil 状态

ios - NS编码: How to create required init in inherited classes

ios - 如何使用 swift 动态屏蔽文本字段

cuda - GPU亲和性(GPU核心亲和性)

c++ - 在游戏中的图形和物理引擎之间共享数据?

c# - 如何在 .NET 中访问桌面缓冲区的图像?

iOS CGContextAddArc 和不同的屏幕分辨率

cuda - Nvidia 设备上的 OpenCL 与 CUDA 性能

compilation - CUDA C 应用程序的分布式编译(类似于 distcc,但支持 nvcc 编译器)