---
title: TextureResource.Semantic.scalar
framework: realitykit
role: symbol
role_heading: Case
path: realitykit/textureresource/semantic-swift.enum/scalar
---

# TextureResource.Semantic.scalar

Use the texture to store a single value in each pixel.

## Declaration

```swift
case scalar
```

## Discussion

Discussion Properties that specify a semantic of scalar use the texture to store a single floating point value in each pixel. If the texture’s source is an RGB image, the property uses only the red channel value.

## See Also

### Specifying intended use

- [TextureResource.Semantic.raw](realitykit/textureresource/semantic-swift.enum/raw.md)
- [TextureResource.Semantic.color](realitykit/textureresource/semantic-swift.enum/color.md)
- [TextureResource.Semantic.hdrColor](realitykit/textureresource/semantic-swift.enum/hdrcolor.md)
- [TextureResource.Semantic.normal](realitykit/textureresource/semantic-swift.enum/normal.md)
