<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "macOS: 14.0.0 -",
    "Xcode: 26.3.0 -"
  ],
  "documentType" : "article",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/rendering-a-curve-primitive-in-a-ray-tracing-scene",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Rendering a curve primitive in a ray tracing scene"
}
-->

# Rendering a curve primitive in a ray tracing scene

Implement ray traced rendering using GPU-based parallel processing.

## Discussion> Note: This sample code project is associated with WWDC23 session [10128: Your guide to Metal ray tracing](https://developer.apple.com/wwdc23/10128).

### Configure the sample code project

This sample requires the following system and software configuration:

- macOS 14 or later
- iOS 17 or later
- Xcode 15 or later

---

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)