# WebGPURenderer VR support?

**URL:** <https://discourse.threejs.org/t/webgpurenderer-vr-support/76048>\
**Category:** Questions\
**Tags:** webvr, webgpu\
**Created:** [January 5, 2025, 11:05pm UTC](https://discourse.threejs.org/t/webgpurenderer-vr-support/76048 "2025-01-05T23:05:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmanYmton](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@EmanYmton](https://discourse.threejs.org/u/EmanYmton)\
**Post date:** [January 5, 2025, 11:05pm UTC](https://discourse.threejs.org/t/webgpurenderer-vr-support/76048/1 "2025-01-05T23:05:25Z")

</div>

Hello,

I’m new to ThreeJS (thank you for the awesome work! 💪) and my interest if for WEB VR content.  
I’m starting to play with TSL and WebGPU but it seems WebXRManager is not set for WebGPURenderer.  
Is it possible ? planned ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [January 6, 2025, 1:43pm UTC](https://discourse.threejs.org/t/webgpurenderer-vr-support/76048/2 "2025-01-06T13:43:44Z")

</div>

It is not possible to use WebXR with `WebGPURenderer`, yet. There is an issue at GitHub that tracks this task:

> <https://github.com/mrdoob/three.js/issues/28968>
>
> \### Description
> 
> As it seems that work on \`WebGLRenderer\` will go into mainten…ance mode to make more space for \`WebGPURenderer\`, it would be great to see an initial implementation of WebXR so we can start testing WebGPU as well. 
> 
> We'd like to test and help, but I'm not sure how WebXR fits into the current architecture of the new system with two backends. I'd already be happy if \`WebGPURenderer ({forceWebGL: true})\` had WebXR support (so, not actually WebGPU).
> 
> \### Reproduction steps
> 
> 1. Use WebGPURenderer
> 2. Try to use XR
> 3. Note that APIs don't exist anymore (\`getSession()\`, \`getCamera()\`, \`isPresenting\`, ...)
> 
> \### Version
> 
> r167
> 
> \### Device
> 
> Headset, Phones
> 
> \### OS
> 
> Windows, Android

AFAIK there is still no general WebXR support for WebGPU so all what we could do is adding support for the WebGL 2 backend.

---

<div class="post-metadata">

**Author:** ![EmanYmton](https://avatars.discourse-cdn.com/v4/letter/e/919ad9/32.png) [@EmanYmton](https://discourse.threejs.org/u/EmanYmton)\
**Post date:** [January 9, 2025, 1:08pm UTC](https://discourse.threejs.org/t/webgpurenderer-vr-support/76048/4 "2025-01-09T13:08:47Z")

</div>

Thank you for your answers.

I saw the recent updates and I will keep an eye on the issue.

Just to be sure : TSL is supported only by WebGPU (with WebGL 2 fallback if needed).  
After trying some code, I took a look at src/Three.WebGPU.js and src/Three.js.

There is no way to reuse the TSL code I wrote with WebGLRenderer (for WebXR in the mean time) ?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [January 10, 2025, 10:38pm UTC](https://discourse.threejs.org/t/webgpurenderer-vr-support/76048/6 "2025-01-10T22:38:45Z")

</div>

> [@EmanYmton](#):
>
> There is no way to reuse the TSL code I wrote with WebGLRenderer (for WebXR in the mean time) ?

Correct, the node material and TSL only work with `WebGPURenderer`.
