【发布时间】: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 得到相同的结果。
这似乎是错误的,因为:
- 据我所知,the docs say it should be supported。 (参见链接页面上的表格。)
- 片段着色器(在 iPhone 6 上确认)允许写入 32 位纹理,但 GPGPU 内核不允许写入,这似乎很奇怪。因为这显然对任何数量的 GPGPU 任务都非常有用,但对于移动设备上的图形渲染似乎有点小众。
我读错了文档吗?有人对此有不同/更好的官方信息或其他信息吗?
感谢您的宝贵时间。
【问题讨论】: