<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLIntersectionFunctionSignature",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLIntersectionFunctionSignature"
  },
  "title" : "MTLIntersectionFunctionSignature"
}
-->

# MTLIntersectionFunctionSignature

Constants for specifying different types of custom intersection functions.

```
struct MTLIntersectionFunctionSignature
```

## Overview

For more information on declaring intersection functions in MSL, see [Metal Shading Language Specification](https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf).

## Topics

### Initializing the intersection function signature

[`init(rawValue:)`](/documentation/Metal/MTLIntersectionFunctionSignature/init(rawValue:))

Returns a new signature description from a specified raw value.

### Specifying the intersection function signature

[`MTLIntersectionFunctionSignatureNone`](/documentation/Metal/MTLIntersectionFunctionSignature/MTLIntersectionFunctionSignatureNone)

A constant indicating that the function uses the default signature.

[`instancing`](/documentation/Metal/MTLIntersectionFunctionSignature/instancing)

A flag indicating that function signature uses instancing.

[`triangleData`](/documentation/Metal/MTLIntersectionFunctionSignature/triangleData)

A flag indicating that function signature uses triangle data.

[`worldSpaceData`](/documentation/Metal/MTLIntersectionFunctionSignature/worldSpaceData)

A flag indicating that function signature uses world space data.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)