func (d Device) MakeBufferWithBytes(bytes unsafe.Pointer, length uintptr, opt ResourceOptions) Buffer {
	return Buffer{C.Device_MakeBufferWithBytes(d.device, bytes, C.size_t(length), C.uint16_t(opt))}
}
func (d Device) MakeBufferWithBytes(bytes unsafe.Pointer, length uintptr, opt ResourceOptions) Buffer {
	return Buffer{C.Device_MakeBufferWithBytes(d.device, bytes, C.size_t(length), C.uint16_t(opt))}
}
func ( d Device ) MakeBufferWithBytes ( bytes unsafe . Pointer , length uintptr , opt ResourceOptions ) Buffer { return Buffer { C . Device_MakeBufferWithBytes ( d . device , bytes , C . size_t ( length ) , C . uint16_t ( opt ) ) } }
// MakeBufferWithBytes allocates a new buffer of a given length
// and initializes its contents by copying existing data into it.
//
// Reference: https://developer.apple.com/documentation/metal/mtldevice/1433429-makebuffer.
MakeBufferWithBytes allocates a new buffer of a given length and initializes its contents by copying existing data into it . Reference : https : // developer . apple . com / documentation / metal / mtldevice / 1433429 - makebuffer .