Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

GraphicsBuffer for vertices inquiry

$
0
0
Hi, I wanted to pass some vertices from CPU to GPU's computeShader's kernel via GraphicsBuffer, but I stumbled upon some incosistent information. https://docs.unity3d.com/ScriptReference/GraphicsBuffer-ctor.html states that **GraphicsBuffer** constructor takes **target** as the first argument, which should enable you to choose indices or vertices (as per description), but https://docs.unity3d.com/ScriptReference/GraphicsBuffer.Target.html shows that only indices are available. How to make it work with vertices?

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>