private void Rebind() { switch (bufferType) { case BufferType.Vertex: PlatformRenderer.RebindVertexBuffer(this); break; case BufferType.Index: PlatformRenderer.RebindIndexBuffer(this); break; } }