---
title: gpuResourceID
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunctionhandle/gpuresourceid
---

# gpuResourceID

## Declaration

```swift
var gpuResourceID: MTLResourceID { get }
```

## Discussion

Discussion Handle of the GPU resource suitable for storing in an Intersection Function Buffer. The handle must have been created from an intersection function annotated with the intersection_function_buffer tag.
