# How to use fp16 in metal?

**URL:** <https://forums.unrealengine.com/t/how-to-use-fp16-in-metal/247085>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [August 24, 2021, 9:40am UTC](https://forums.unrealengine.com/t/how-to-use-fp16-in-metal/247085 "2021-08-24T09:40:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baesky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Baesky](https://forums.unrealengine.com/u/Baesky)\
**Post date:** [August 24, 2021, 9:40am UTC](https://forums.unrealengine.com/t/how-to-use-fp16-in-metal/247085/1 "2021-08-24T09:40:56Z")

</div>

I declare some var with “half”, after cross compiling, the “half” are all translated to “float” in metal shader. Any idea?
