---
title: "precomputedLightingEnvironmentData(forContents:device:)"
framework: scenekit
role: symbol
role_heading: Type Method
path: "scenekit/scnmaterialproperty/precomputedlightingenvironmentdata(forcontents:device:)"
---

# precomputedLightingEnvironmentData(forContents:device:)

## Declaration

```swift
class func precomputedLightingEnvironmentData(forContents contents: Any, device: (any MTLDevice)?) throws -> Data
```
