# Avoid compute shader CPU readback

**URL:** <https://forums.unrealengine.com/t/avoid-compute-shader-cpu-readback/1291128>\
**Category:** C++\
**Tags:** unreal-engine, Shaders, question, CPP\
**Created:** [September 11, 2023, 1:04pm UTC](https://forums.unrealengine.com/t/avoid-compute-shader-cpu-readback/1291128 "2023-09-11T13:04:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![NateMc4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NateMc4](https://forums.unrealengine.com/u/NateMc4)\
**Post date:** [October 4, 2023, 3:49pm UTC](https://forums.unrealengine.com/t/avoid-compute-shader-cpu-readback/1291128/4 "2023-10-04T15:49:08Z")

</div>

Depends on what the data is. I was thinking if it’s height map data you could do something like render to target. Then in a material you could sample the texture and use World Position Offset to display the height. I don’t think this is moving it from GPU to CPU because it’s only a visual effect. It wouldn’t have proper collision but you could see it being built. At the end you could move it from the GPU into a procedural mesh or something like that. If it’s a volume texture (3D texture) you could do something similar where you read the volume texture and display it with a volumetric effect like fog. If it’s mesh data there might be some way to flag it as a mesh on the GPU. I don’t know the specifics of how to do this in Unreal. I found this though. [Update vertex buffer with data from GPU](https://forums.unrealengine.com/t/update-vertex-buffer-with-data-from-gpu/391988)

---

_[View the full topic](https://forums.unrealengine.com/t/avoid-compute-shader-cpu-readback/1291128)._
