<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/texture",
  "metadataVersion" : "0.1.0",
  "role" : "Namespace",
  "symbol" : {
    "kind" : "Namespace",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "texture"
  },
  "title" : "texture"
}
-->

# texture

Nodes usable within the texture stage, for generating textures.

## Topics

### Functions

[`uint2 texture::position()`](/documentation/ComputeGraph/texture/position)

Current pixel’s position

[`void texture::setPixel(value)`](/documentation/ComputeGraph/texture/setPixel)

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

[`float2 texture::uv()`](/documentation/ComputeGraph/texture/uv)

Current pixel’s position, in UV [0.0, 1.0] coordinates.

---

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)