---
title: cp_view_texture_map_t
framework: compositorservices
role: symbol
role_heading: Type Alias
path: compositorservices/cp_view_texture_map_t
---

# cp_view_texture_map_t

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

## Declaration

```occ
typedef struct cp_view_texture_map * cp_view_texture_map_t;
```

## Discussion

Discussion 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)

## See Also

### Getting the view’s texture map

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