How to access to a float4 position?

Also, if you just want to make a cylinder, you can use Metal’s built in primitive described here:

You could then access the vertices in the generated MTLBuffer if you need to do anything else with them.

1 Like