I want to create a VertexBuffer with a Size which is defined at runtime, so I have to use a dynamic array of vertices! After filling my array of Vertices with the correct Data, I have to move it to the VertexBuffer.
But when i render the Vertices, then I see that they are all wrong.
So i think my way of moving a dynamic array of vertices to a vertexbuffer is wrong...
Does someone know how to move it correctly

I'm thankful for every answer...