# Vitest-browser-three: GPU-native assertions for three.js TSL (WebGPU + WebGL2 fallback)

**URL:** <https://discourse.threejs.org/t/vitest-browser-three-gpu-native-assertions-for-three-js-tsl-webgpu-webgl2-fallback/95166>\
**Category:** Resources\
**Created:** [October 10, 2026, 4:10pm UTC](https://discourse.threejs.org/t/vitest-browser-three-gpu-native-assertions-for-three-js-tsl-webgpu-webgl2-fallback/95166 "2026-10-10T16:10:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![linbingquan](https://avatars.discourse-cdn.com/v4/letter/l/fbc32d/32.png) [@linbingquan](https://discourse.threejs.org/u/linbingquan)\
**Post date:** [October 10, 2026, 4:10pm UTC](https://discourse.threejs.org/t/vitest-browser-three-gpu-native-assertions-for-three-js-tsl-webgpu-webgl2-fallback/95166/1 "2026-10-10T16:10:06Z")

</div>

GPU-native assertions for three.js TSL expressions, running in Vitest Browser Mode. Assertions compile to compute shaders on real GPU (WebGPU/WebGL2 fallback), results read back to CPU.

npm: [https://www.npmjs.com/package/vitest-browser-three](https://www.npmjs.com/package/vitest-browser-three)  
repo: [GitHub - linbingquan/vitest-browser-three: GPU-native assertions for three.js TSL expressions in Vitest Browser Mode. · GitHub](https://github.com/linbingquan/vitest-browser-three)
