---
title: XRWebGLSubImage.textureWidth
slug: Web/API/XRWebGLSubImage/textureWidth
tags:
  - API
  - Property
  - Reference
  - VR
  - WebXR
  - WebXR API
  - WebXR Device API
  - XR
browser-compat: api.XRWebGLSubImage.textureWidth
---
{{APIRef("WebXR Device API")}}

The read-only **`textureWidth`** property of the {{domxref("XRWebGLSubImage")}} interface is a number representing the width in pixels of the GL attachment.

## Value

A number indicating the width in pixels.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("WebGLTexture")}}
