---
title: texture_sample
framework: ComputeGraph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/texture_sample
---

# texture_sample

## Declaration

```swift
float4 texture_sample(void texture, float2 uv)
```

## Discussion

Discussion note:

## See Also

### Utility nodes

- [graph](computegraph/graph.md)
- [group](computegraph/group.md)
- [texture](computegraph/texture.md)
- [random](computegraph/random.md)
- [matrix4x4f](computegraph/matrix4x4f.md)
- [matrix4x4h](computegraph/matrix4x4h.md)
- [viewpoint](computegraph/viewpoint-swift.func.md)
- [element_integrate](computegraph/element_integrate.md)
- [texture_sample1d](computegraph/texture_sample1d.md)
- [orient_to_velocity](computegraph/orient_to_velocity.md)
- [gridDebugCells](computegraph/griddebugcells.md)
- [gridFromPoints](computegraph/gridfrompoints.md)
- [spawn_demo](computegraph/spawn_demo.md)
