Directly use vertex buffer for drawing meshes?

Godot Version

4.5 stable

Question

Hello,
i have created a vertex array in a compute shader. The buffer exists on the gpu and i currently send it to the cpu to do some stuff with it. Is there a way to directly tell godot to use the vertex buffer in their vertex/fragment pipeline?

You’ll need to use an ArrayMesh or any other way to generate procedural geometry to use that buffer.

hmm ok thanks

Hey! did you find a solution to this problem? I’m also trying to implement a procedural mesh generator on the GPU.

I think i might be able to bind the RIDs of the ArrayMesh in the compute shader but I’m not sure how yet…

Hey FiveN,

no sadly not. I had to send the mesh to the cpu anyway for collisions. Hope you find a solution!

1 Like