---
title: "encodeBilateralFilter(to:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpssvgf/encodebilateralfilter(to:stepdistance:sourcetexture:destinationtexture:depthnormaltexture:)"
---

# encodeBilateralFilter(to:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:)

## Declaration

```swift
func encodeBilateralFilter(to commandBuffer: any MTLCommandBuffer, stepDistance: Int, sourceTexture: any MTLTexture, destinationTexture: any MTLTexture, depthNormalTexture: any MTLTexture)
```
