---
title: "texture::setPixel"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/texture/setpixel
---

# texture::setPixel

In the context of a texture stage, sets the current pixels’ value.

## Declaration

```swift
void texture::setPixel(float4 value)
```

## Parameters

- `value`: The four-component floating-point color value to store

## Discussion

Discussion note:
