---
title: LayerRenderer.Drawable.View.TextureMap
framework: compositorservices
role: symbol
role_heading: Structure
path: compositorservices/layerrenderer/drawable/view/texturemap-swift.struct
---

# LayerRenderer.Drawable.View.TextureMap

A type that provides details about the textures associated with a view.

## Declaration

```swift
struct TextureMap
```

## Overview

Overview A texture map helps you locate the content for a specific view within a texture. Texture maps are especially important when a layer uses a single texture to manage multiple views. For example, a head-mounted display might store the images for both the left and right eyes in a single texture. Pass this type to other functions to get specific details about the current texture, such as its view bounds or its index into a texture array.

## Topics

### Getting the viewport

- [viewport](compositorservices/layerrenderer/drawable/view/texturemap-swift.struct/viewport.md)

### Getting the texture indices

- [sliceIndex](compositorservices/layerrenderer/drawable/view/texturemap-swift.struct/sliceindex.md)
- [textureIndex](compositorservices/layerrenderer/drawable/view/texturemap-swift.struct/textureindex.md)

### Creating a texture map

- [init()](compositorservices/layerrenderer/drawable/view/texturemap-swift.struct/init().md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Getting the view’s texture map

- [textureMap](compositorservices/layerrenderer/drawable/view/texturemap-swift.property.md)
