newBuffer(with:type:)
Creates a new buffer containing the specified data.
Declaration
func newBuffer(with data: Data, type: MDLMeshBufferType) -> any MDLMeshBufferParameters
Return Value
A new memory buffer for mesh data.
Discussion
The concrete class implementing this protocol determines the memory pool from which the buffer is allocated. To provide a hint that multiple related allocations should share the same pool of memory, use the newBuffer(from:data:type:) method instead.