【问题标题】:Writing to 32-bit float textures from Metal kernels? Docs say yes, runtime says no从 Metal 内核写入 32 位浮点纹理?文档说是,运行时说不
【发布时间】:2015-08-27 07:13:58
【问题描述】:

在检查 Metal 接口的 GPGPU 部分时,我在尝试从内核写入 32 位浮点纹理时遇到了断言失败(edit: 在 iPhone 6 上, iOS 8.4.1):

`Non-writable texture format MTLPixelFormatRGBA32Float is being bound at index 2 to a shader argument with write access enabled.'

使用 RG32Float 和 R32Float 得到相同的结果。

这似乎是错误的,因为:

  1. 据我所知,the docs say it should be supported。 (参见链接页面上的表格。)
  2. 片段着色器(在 iPhone 6 上确认)允许写入 32 位纹理,但 GPGPU 内核不允许写入,这似乎很奇怪。因为这显然对任何数量的 GPGPU 任务都非常有用,但对于移动设备上的图形渲染似乎有点小众。

我读错了文档吗?有人对此有不同/更好的官方信息或其他信息吗?

感谢您的宝贵时间。

【问题讨论】:

    标签: ios gpgpu metal


    【解决方案1】:

    Apple 论坛上的某个人好心地指出,我正在查看 iOS 9 的预发布文档!已安装测试版,从 iOS 9 开始确实支持。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-30
      • 1970-01-01
      • 1970-01-01
      • 2012-11-30
      • 2016-12-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多