- Home /
GraphicsBuffer for vertices inquiry
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?
Your answer
Follow this Question
Related Questions
Using compute shader, how to take every vertex of a mesh and make a cube spawn and move to each one? 0 Answers
Water & Fabric compute shader 0 Answers
Baking position data onto a render texture 1 Answer
Replacing a geometry shader with a compute shader. How do I output an arbitrary number of triangles? 0 Answers
Writing to render texture in for loop not working (metal) 0 Answers