# Confuse about RHIUpdateUniformBuffer

**URL:** <https://forums.unrealengine.com/t/confuse-about-rhiupdateuniformbuffer/483826>\
**Category:** Rendering\
**Tags:** d3d11, unreal-engine, runtime, Rendering, UE4, question\
**Created:** [May 24, 2021, 4:05am UTC](https://forums.unrealengine.com/t/confuse-about-rhiupdateuniformbuffer/483826 "2021-05-24T04:05:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelusy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Angelusy](https://forums.unrealengine.com/u/Angelusy)\
**Post date:** [May 24, 2021, 4:05am UTC](https://forums.unrealengine.com/t/confuse-about-rhiupdateuniformbuffer/483826/1 "2021-05-24T04:05:45Z")

</div>

I am learning about the UE4 Rendering,I found a piece of code I cannot understand,I will very appreciate if someone can help me.

Q: There is a structure “ **FOpaqueBasePassUniformParameters** ” contains some data,some of them are the pointer data,just like “_FRHIResource DBufferTextureA_\*”.  
That’s OK,but later in the “ **UpdateUniformBufferImmediate** ” code,there is a function named “ **UpdateUniformBufferContents** ”,they copy all the the data in this structure into a GPU Mapped Resource include the pointer data,I cannot understand,the pointer data should store the cpu address,it shouldn’t be used in GPU,I don’t know if I missunder something.
