Код: Выделить всё
computeEncoder.setTexture(highResTexture, index: 0)
computeEncoder.setBuffer(largeBuffer, offset: 0, index: 0)
...
renderEncoder.setVertexTexture(highResTexture, index: 0)
renderEncoder.setVertexBuffer(largeBuffer, offset: 0, index: 0)
GPU Read Bandwidth: < /p>
6.3920 Gib /s без связывания < /li>
7.1919 Gib /s с привязкой < /li>
< /ul>
без связывания. Здесь "src =" https://i.sstatic.net/3w3ih.jpg "/>
с привязкой текстуры, но не используя ее каким -либо образом:
Подробнее здесь: https://stackoverflow.com/questions/715 ... nd-encoder
Мобильная версия