---
title: "glStencilFuncSeparate(_:_:_:_:)"
framework: OpenGL ES
role: symbol
role_heading: Function
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 3.0+, tvOS 9.0+]
path: "opengles/glstencilfuncseparate(_:_:_:_:)"
---

# glStencilFuncSeparate(_:_:_:_:)

## Declaration

```swift
func glStencilFuncSeparate(_ face: GLenum, _ func: GLenum, _ ref: GLint, _ mask: GLuint)
```
