# Using global shaders within UE - DLL failing to load

**URL:** <https://forums.unrealengine.com/t/using-global-shaders-within-ue-dll-failing-to-load/479038>\
**Category:** Rendering\
**Tags:** modules, macros, unreal-engine, Shaders, question\
**Created:** [February 19, 2021, 8:12am UTC](https://forums.unrealengine.com/t/using-global-shaders-within-ue-dll-failing-to-load/479038 "2021-02-19T08:12:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1Black.Snow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@1Black.Snow](https://forums.unrealengine.com/u/1Black.Snow)\
**Post date:** [February 19, 2021, 8:12am UTC](https://forums.unrealengine.com/t/using-global-shaders-within-ue-dll-failing-to-load/479038/1 "2021-02-19T08:12:13Z")

</div>

Hey y’all. I’m struggling to get global shaders working re this article: [Adding Global Shaders to Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/en-US/ProgrammingAndScripting/Rendering/ShaderDevelopment/AddingGlobalShaders/index.html)

I’m unsure of a couple things:  
A.) Are the cpp and h files built within the current project?  
B.) What is the value generally for the REQUIRED\_API parameter in the DECLARE\_EXPORTED\_SHADER\_TYPE macro? I’ve tried my own project’s API (which seems redundant), and I’ve also tried the Renderer\_API, neither worked.  
C.) Is the shader supposed to go in Engine/Shaders even if it’s specific to the project? If not, where does it go?

Currently, with any value of REQUIRED\_API, IMPLEMENT\_SHADER\_TYPE causes the project dll to fail to load, but it compiles fine.
