---
title: "init(share:)"
framework: glkit
role: symbol
role_heading: Initializer
path: "glkit/glktextureloader/init(share:)"
---

# init(share:)

Initializes a new texture loader object.

## Declaration

```swift
init(share context: NSOpenGLContext)
```

## Parameters

- `context`: The share context used to store new textures.

## Return Value

Return Value A newly initialized texture loader.

## Discussion

Discussion You only create a texture loader object when your app needs to load textures asynchronously.

## See Also

### Initialization

- [init(sharegroup:)](glkit/glktextureloader/init(sharegroup:).md)
