# Where to find introduction info about HLSL in UE

**URL:** <https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911>\
**Category:** Rendering\
**Tags:** unreal-engine, hlsl, question\
**Created:** [April 14, 2025, 7:18pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911 "2025-04-14T19:18:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.S.M.A.S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@M.S.M.A.S](https://forums.unrealengine.com/u/M.S.M.A.S)\
**Post date:** [April 14, 2025, 7:18pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911/1 "2025-04-14T19:18:20Z")

</div>

I know a little of HLSL, but HLSL in UE is different than Pixel or Vertex shader, I saw this article

> **[Post Process Material User Scene Textures in Unreal Engine | Unreal Engine...](https://dev.epicgames.com/documentation/en-us/unreal-engine/post-process-material-user-scene-textures-in-unreal-engine)**
>
> User-defined transient render targets that can be written and read in post process materials in Unreal Engine.

There’s a line that says  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/b/c/e/bcea1f6d5c9f8cf0ea83da23e0b23500d10ffdc1_2_690x56.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/d/3bd6df1d23da535916649d7634b99c8139968d9e.png)

in this example Tex is a color, but **Colors are suppose to be RGBA but it has an ID parameter!!!**

**If i’m writing my own HLSL on my own, how am i suppose to know that color has ID or the parameters types have in general??**

where does epic expect people to find such info??

I believe there should be some api or reference that i can’t find, so can anyone point me to the startup guide for Epic’s HLSL code that explain the basics of UE HLSL API and the type definitions.

I’m using microsoft visual studio and I dont get recommendation in my USF file  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/0/e20c336f3848f747829e56eed38e1855ff82c5ef.png)

I’m looked at the source code but it’s pain to find the info i’m looking for, the information is scattered everywhere, a little in the `FMaterialCompiler` header, but it doesnt have all the functions, and I still need to know how to know the definition of types in the usf file

---

<div class="post-metadata">

**Author:** ![Mitch\_Mitchell](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mitch_mitchell/32/909094_2.png) [@Mitch\_Mitchell](https://forums.unrealengine.com/u/Mitch_Mitchell)\
**Post date:** [May 5, 2025, 12:47pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911/2 "2025-05-05T12:47:20Z")

</div>

You need the details about HLSL naming conventions in creating custom USF files?

---

<div class="post-metadata">

**Author:** ![sarahlenker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sarahlenker/32/994419_2.png) [@sarahlenker](https://forums.unrealengine.com/u/sarahlenker)\
**Post date:** [May 7, 2025, 8:10pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911/3 "2025-05-07T20:10:41Z")

</div>

Hi @M.S.M.A.S,

Yeah, unfortunately Unreal has no HLSL api that I know of. As you’ve discovered, information is scarce and scattered.

Luckily, I’ve managed to track down where all of the engine-provided HLSL functions are stored.  
They are in your engine’s \Engine\Shaders\Private folder. You can control-F here to search for particular functions, and the Common.ush file contains a large amount of basic functions (this is most likely where you’ll have luck finding what you’re looking for).

As far as where to pick up additional Unreal HLSL information, I’ve found the most luck through watching talks given by Epic-employed tech artists. This video in particular is a great resource, as it goes into a lot of lesser-known features of the material graph and goes over how to use Custom functions within Custom expressions (though if I recall this information is out of date and might require some googling to get it working).

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/0/bd0f79de12c12e71acedacf5258c80deed050122.jpeg "Custom Material Node: How to use and create Metaballs | Live Training | Unreal Engine") ](https://www.youtube.com/watch?v=HaUAfgrZjlU)

Best of luck in your learning! Let me know if you have any other questions.

---

<div class="post-metadata">

**Author:** ![M.S.M.A.S](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@M.S.M.A.S](https://forums.unrealengine.com/u/M.S.M.A.S)\
**Post date:** [June 28, 2025, 10:49pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911/4 "2025-06-28T22:49:07Z")

</div>

Thanks sara,  
Yeah I think I managed to learn all I can about writing code for custom node from engine code and brute forcing the options in the editor for hints of information lol

I’m not a talking about setting up and writing a complete shader file though, because custom node is snippet that gets pasted inside shader

custom nodes was enough for what I was doing for now

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [June 28, 2025, 11:13pm UTC](https://forums.unrealengine.com/t/where-to-find-introduction-info-about-hlsl-in-ue/2456911/5 "2025-06-28T23:13:51Z")

</div>

Wait a minute - what are you even on about with color ids?  
Thats a texture ID - not a float 3 (or 4) color!
