---
title: "applying(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sktexture/applying(_:)"
---

# applying(_:)

Creates a new texture by applying a Core Image filter to an existing texture.

## Declaration

```swift
func applying(_ filter: CIFilter) -> Self
```

## Parameters

- `filter`: A Core Image filter that requires a single inputImage parameter and produces an outputImage parameter.

## Return Value

Return Value A new texture object.

## Discussion

Discussion The image data is copied before control is returned to your game.
