# \#compute-shaders

**URL:** https://discourse.threejs.org/tag/compute-shaders/1657.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Learning Compute shaders in tsl](https://discourse.threejs.org/t/learning-compute-shaders-in-tsl/90013)

<div class="topic-metadata">

**Author:** [@gobinda-das-dev](https://discourse.threejs.org/u/gobinda-das-dev)\
**Replies:** 24\
**Last updated:** [August 22, 2026, 3:00am UTC](https://discourse.threejs.org/t/learning-compute-shaders-in-tsl/90013 "2026-08-22T03:00:48Z")

</div>

From where can I know more about compute shaders in tsl. and one more thing, when i do compute shaders in tsl with webgpuRenderer, will it work inside webgl?

---

## [3D Timeline Portfolio with AI,](https://discourse.threejs.org/t/3d-timeline-portfolio-with-ai/92332)

<div class="topic-metadata">

**Author:** [@Yusef\_Nsar](https://discourse.threejs.org/u/Yusef_Nsar)\
**Replies:** 4\
**Last updated:** [June 25, 2026, 12:16pm UTC](https://discourse.threejs.org/t/3d-timeline-portfolio-with-ai/92332 "2026-06-25T12:16:51Z")

</div>

Hi there, I would love to share my new portfolio, made with WebGPU/Compute Shaders/Custom TSL Nodes, GSAP animations,infinite scroll and AI integration. Here it is: Would love to hear your feedback, thanks.

---

## [R184 and i-Phone](https://discourse.threejs.org/t/r184-and-i-phone/91051)

<div class="topic-metadata">

**Author:** [@phil\_crowther](https://discourse.threejs.org/u/phil_crowther)\
**Replies:** 0\
**Last updated:** [April 17, 2026, 4:32am UTC](https://discourse.threejs.org/t/r184-and-i-phone/91051 "2026-04-17T04:32:59Z")

</div>

With every three.js revision, I like to test my ifft ocean wave generators to see if they work on my i-phone. With R184, I was pleasantly surprised to see that both of my gpu versions work. Oddly, the gl2 version does …

---

## [WebGPU render target texture TSL error](https://discourse.threejs.org/t/webgpu-render-target-texture-tsl-error/86565)

<div class="topic-metadata">

**Author:** [@playbyan1453](https://discourse.threejs.org/u/playbyan1453)\
**Replies:** 2\
**Last updated:** [August 28, 2025, 11:19pm UTC](https://discourse.threejs.org/t/webgpu-render-target-texture-tsl-error/86565 "2025-08-28T23:19:41Z")

</div>

Hi I am using three.js r179.1 and using WebGPU to create a hobby project working around virtual texture system, while implementing I encountered a issue where my value passed to the TSL compiler it seems the value was ch…

---

## [Manipulate vertices in Line2Segments / Line2Node material in compute shader](https://discourse.threejs.org/t/manipulate-vertices-in-line2segments-line2node-material-in-compute-shader/86984)

<div class="topic-metadata">

**Author:** [@met](https://discourse.threejs.org/u/met)\
**Replies:** 0\
**Last updated:** [September 14, 2025, 8:06pm UTC](https://discourse.threejs.org/t/manipulate-vertices-in-line2segments-line2node-material-in-compute-shader/86984 "2025-09-14T20:06:44Z")

</div>

I’m learning webGPU, and I am trying to animate vertices of a line geometry using compute shader logic and the beautiful feature of TSL! I read a few topics here, in particular this one . I set up everything properly a…

---

## [Reading and writing buffers in TSL/WebGPU?](https://discourse.threejs.org/t/reading-and-writing-buffers-in-tsl-webgpu/86315)

<div class="topic-metadata">

**Author:** [@byDezign](https://discourse.threejs.org/u/byDezign)\
**Replies:** 0\
**Last updated:** [August 18, 2025, 1:37am UTC](https://discourse.threejs.org/t/reading-and-writing-buffers-in-tsl-webgpu/86315 "2025-08-18T01:37:43Z")

</div>

From what I can tell there are many many ways wrapped around WebGPU storageBuffers and very few ways to read them. In the examples they are often instancedArrays but I’m just trying to pass a “control” buffer so its not…

---

## [WebGPU Compute & StorageTexture to store non color data](https://discourse.threejs.org/t/webgpu-compute-storagetexture-to-store-non-color-data/85272)

<div class="topic-metadata">

**Author:** [@bandinopla](https://discourse.threejs.org/u/bandinopla)\
**Replies:** 1\
**Last updated:** [July 19, 2025, 10:28am UTC](https://discourse.threejs.org/t/webgpu-compute-storagetexture-to-store-non-color-data/85272 "2025-07-19T10:28:48Z")

</div>

I’m scratching my head on this one. First time using compute shaders, so maybe I’m doing something wrong due to poor understanding? In a normal webGL implementation I was just rendering to a target then feeding that text…

---

## [attributeArray.element(x) always returns current element](https://discourse.threejs.org/t/attributearray-element-x-always-returns-current-element/83522)

<div class="topic-metadata">

**Author:** [@DarkPhoenix](https://discourse.threejs.org/u/DarkPhoenix)\
**Replies:** 5\
**Last updated:** [June 5, 2025, 9:47am UTC](https://discourse.threejs.org/t/attributearray-element-x-always-returns-current-element/83522 "2025-06-05T09:47:54Z")

</div>

attributeArray.element(x) returns \[instanceIndex\] element always. In fact it does not care about parameters at all, you can write attributeArray.element() it will do the same. Or even just attributeArray. const count = …

---

## [TSL computeshader does not .assign to storage buffer](https://discourse.threejs.org/t/tsl-computeshader-does-not-assign-to-storage-buffer/83299)

<div class="topic-metadata">

**Author:** [@DarkPhoenix](https://discourse.threejs.org/u/DarkPhoenix)\
**Replies:** 4\
**Last updated:** [May 30, 2025, 8:28pm UTC](https://discourse.threejs.org/t/tsl-computeshader-does-not-assign-to-storage-buffer/83299 "2025-05-30T20:28:06Z")

</div>

Pretty sure I am doing something wrong or there are some API changes but my compute function does not assign to the storage buffer. const count = 10 const colArray = new THREE.StorageInstancedBufferAttribute(new Float32…

---

## [Compute Shader TSL](https://discourse.threejs.org/t/compute-shader-tsl/80277)

<div class="topic-metadata">

**Author:** [@Stan2hssn](https://discourse.threejs.org/u/Stan2hssn)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 7:06am UTC](https://discourse.threejs.org/t/compute-shader-tsl/80277 "2025-04-03T07:06:20Z")

</div>

Hello everyone, I’m new to using TSL, and since the documentation is still quite limited due to how recent it is, I’m reaching out to the community for help! About a year ago, I created a raymarching-based cloud genera…

---

## [R173 - Resolve Timestamps Error Message](https://discourse.threejs.org/t/r173-resolve-timestamps-error-message/77370)

<div class="topic-metadata">

**Author:** [@phil\_crowther](https://discourse.threejs.org/u/phil_crowther)\
**Replies:** 1\
**Last updated:** [January 31, 2025, 8:45pm UTC](https://discourse.threejs.org/t/r173-resolve-timestamps-error-message/77370 "2025-01-31T20:45:43Z")

</div>

I converted several of my WebGPU programs to r173. They all work fine, except that the performance monitor did not indicate any GPU activity and had this error message: WebGPUTimestampQueryPool \[compute\] Maximum number…

---

## [How to read displacement map texture in compute shaders?](https://discourse.threejs.org/t/how-to-read-displacement-map-texture-in-compute-shaders/74609)

<div class="topic-metadata">

**Author:** [@michealmyers81](https://discourse.threejs.org/u/michealmyers81)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 2:09am UTC](https://discourse.threejs.org/t/how-to-read-displacement-map-texture-in-compute-shaders/74609 "2024-12-03T02:09:29Z")

</div>

In TSL compute shaders I would like to know how to read the data from a displacement map and then use that to update the meshes geometry (position buffer attribute). I’m still having some trouble understanding the new AP…
