---
title: GL_COMPARE_REF_TO_TEXTURE
framework: OpenGL ES
role: symbol
role_heading: Global Variable
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 2.0+, tvOS 9.0+, visionOS 1.0+]
path: opengles/gl_compare_ref_to_texture
---

# GL_COMPARE_REF_TO_TEXTURE

## Declaration

```swift
var GL_COMPARE_REF_TO_TEXTURE: Int32 { get }
```
