# How to Get Num Particles in GPU Compute Sim

**URL:** <https://forums.unrealengine.com/t/how-to-get-num-particles-in-gpu-compute-sim/759895>\
**Category:** FX\
**Tags:** unreal-engine, hlsl, question\
**Created:** [January 30, 2023, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-get-num-particles-in-gpu-compute-sim/759895 "2023-01-30T16:33:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![78shiro1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@78shiro1](https://forums.unrealengine.com/u/78shiro1)\
**Post date:** [January 30, 2023, 4:33pm UTC](https://forums.unrealengine.com/t/how-to-get-num-particles-in-gpu-compute-sim/759895/1 "2023-01-30T16:33:10Z")

</div>

I want to reference a Num Particle in Custom HLSL, but I can’t get the value right.

So I checked the sheet to see what kind of value is contained, and it seems to be 0.  
However, in CPU Sim mode, the attribute had a proper Num Particles value.

How can I get Num Particles in GPU Compute Sim?

 ![Group 1 (2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/3/ee3394e0855e85b2e271a680b837f9db3be6611a.png)

Thanks.
