# UE4 equivalent for GL\_RGBA16F and GL\_RGBA16UI

**URL:** <https://forums.unrealengine.com/t/ue4-equivalent-for-gl_rgba16f-and-gl_rgba16ui/482170>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [April 19, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/ue4-equivalent-for-gl_rgba16f-and-gl_rgba16ui/482170 "2021-04-19T15:42:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SasMaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Post date:** [April 19, 2021, 3:42pm UTC](https://forums.unrealengine.com/t/ue4-equivalent-for-gl_rgba16f-and-gl_rgba16ui/482170/1 "2021-04-19T15:42:29Z")

</div>

Hi.

I need to generate data textures in runtime with non standard pixel formats. In OpenGL those are:

Texture 1 : `GL_RGBA16F` ,`GL_HALF_FLOAT`

Texture 2: `GL_RGBA16UI`, `GL_UNSIGNED_SHORT`

In UE4 `EPixelFormat` enum I found `PF_R16G16B16A16_SNORM` and `PF_R16G16B16A16_UINT`

Are those equivalent to the above GL types?

---

<div class="post-metadata">

**Author:** ![SasMaster](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SasMaster](https://forums.unrealengine.com/u/SasMaster)\
**Post date:** [July 3, 2021, 12:32pm UTC](https://forums.unrealengine.com/t/ue4-equivalent-for-gl_rgba16f-and-gl_rgba16ui/482170/2 "2021-07-03T12:32:31Z")

</div>

I will answer it myself as I have found the corresponding UE4 formats.

GL\_RGBA16F - \> UE: EPixelFormat::PF\_FloatRGBA

GL\_RGBA16UI → UE4: EPixelFormat::PF\_R16G16B16A16\_UINT

Hope this info will be helpful to others.

See more details in [this blogpost](https://sasmaster.medium.com/unreal-engine-and-custom-data-textures-40857f8b6b81).
