---
title: "init(count:elements:)"
framework: GSS
role: symbol
role_heading: Initializer
platforms: [iOS 5.0+, iPadOS 5.0+, Mac Catalyst 13.0+, macOS 10.14+, visionOS 1.0+]
path: "gss/gss_buffer_set_desc_struct/init(count:elements:)"
---

# init(count:elements:)

Initialize a new buffer set with the given buffers.

## Declaration

```swift
init(count: Int, elements: UnsafeMutablePointer<gss_buffer_desc>!)
```

## Parameters

- `count`: The number of buffers in the elements array.
- `elements`: An array of buffers to be included in the new set.

## See Also

### Initialization

- [init()](gss/gss_buffer_set_desc_struct/init().md)
