How many times is the vertex shader called with metal?
问题 I've been learning some basic metal rendering, and I am stuck with some basic concepts: I know we can send vertex data to a shader using: renderEncoder.setVertexBuffer(vertexBuffer, offset: 0, index: 0) And then we can retrieve it in the shader with: vertex float4 basic_vertex(const device VertexIn* vertexIn [[ buffer(0) ]], unsigned int vid [[ vertex_id ]]) As I understand it, the vertex function will be called once per each vertex, and vertex_id will update on each call to contain the