Binding Vertex Buffer to GPU buffer question

I read the thread about that topic but cannot manage to get anything working.
I create my Storage and Vertex buffer this way:
this.vertexStorageBuffer = new StorageBuffer(this.getEngine(), vertexData.byteLength,Constants.BUFFER_CREATIONFLAG_VERTEX | Constants.BUFFER_CREATIONFLAG_READWRITE ); this.vertexStorageBuffer.update(vertexData);
const positionsBuffer = new VertexBuffer(this.getEngine(), this.vertexStorageBuffer.getBuffer(), VertexBuffer.PositionKind, false, false, 4);

then
this.hairMesh.setVerticesBuffer(positionsBuffer);

And nothing get displayed
though if i just switch to:
const positionsBuffer = new VertexBuffer(this.getEngine(), vertexData, VertexBuffer.PositionKind, false, false, 4);
I get my mesh displayed.

What am i doing wrong ?

OK forget stupid bug on my side

2 Likes