MTLDevice.newBuffer

Creates a buffer the method clears with zero values, length is size in bytes.

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

Meta