# WebGPU: Small fix for conflicting variable type in GreasedLine shader

**URL:** <https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572>\
**Category:** Bugs\
**Tags:** greasedline\
**Created:** [December 26, 2024, 12:01pm UTC](https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572 "2024-12-26T12:01:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Propolisa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/propolisa/32/40423_2.png) [@Propolisa](https://forum.babylonjs.com/u/Propolisa)\
**Post date:** [December 26, 2024, 12:01pm UTC](https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572/1 "2024-12-26T12:01:46Z")

</div>

Hey there, I just noticed while trying to use the lazy loading GreasedLine playground ( [https://playground.babylonjs.com/?webgpu#H1LRZ3#39](https://playground.babylonjs.com/?webgpu#H1LRZ3#39) ) in WebGPU mode, there is a small bug (wrong type in WGSL).

I’ve created the tiny PR (to fix the `pr` variable 😁 ) [WebGPU: Fix conflicting variable type in GreasedLine shader by Propolisa · Pull Request #16027 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/16027) to fix it, the PG now [works in the branch sandbox](https://playground.babylonjs.com/?snapshot=refs/pull/16027/merge&webgpu=true#H1LRZ3#39).

Thanks for all the recent work porting this to WebGPU @roland btw! 😍

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [December 27, 2024, 3:52am UTC](https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572/2 "2024-12-27T03:52:55Z")

</div>

Thank you!
