---
title: init()
framework: accelerate
role: symbol
role_heading: Initializer
path: accelerate/vimage_buffer/init()
---

# init()

Creates an empty vImage buffer.

## Declaration

```swift
init()
```

## Discussion

Discussion Use this initializer to create an empty vImage buffer that you pass to a subsequent function that allocates and initializes the buffer’s storage and properties. For example, the following code creates an empty buffer and initializes it using the vImageBuffer_Init(_:_:_:_:_:) function: var buffer = vImage_Buffer()

vImageBuffer_Init(&buffer,                   5,    // height                   10,   // width                   8,    // bits per pixel                   vImage_Flags(kvImageNoFlags))

## See Also

### Creating an empty vImage buffer

- [init(width:height:bitsPerPixel:)](accelerate/vimage_buffer/init(width:height:bitsperpixel:).md)
- [init(size:bitsPerPixel:)](accelerate/vimage_buffer/init(size:bitsperpixel:).md)
