MTLDevice.newBuffer

Allocates a new buffer of a given length and initializes its contents by copying existing data into it.

  1. MTLBuffer newBuffer(NSUInteger length, MTLResourceOptions options)
  2. MTLBuffer newBuffer(const(void)* pointer, NSUInteger length, MTLResourceOptions options)
    interface MTLDevice
    @selector("newBufferWithBytes:length:options:")
    newBuffer

Meta