# Where can I find examples of RHI draw calls in Unreal Engine 5?

**URL:** <https://forums.unrealengine.com/t/where-can-i-find-examples-of-rhi-draw-calls-in-unreal-engine-5/1996131>\
**Category:** Rendering\
**Tags:** draw, unreal-engine, question\
**Created:** [August 29, 2024, 1:31am UTC](https://forums.unrealengine.com/t/where-can-i-find-examples-of-rhi-draw-calls-in-unreal-engine-5/1996131 "2024-08-29T01:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XLI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XLI](https://forums.unrealengine.com/u/XLI)\
**Post date:** [August 29, 2024, 1:31am UTC](https://forums.unrealengine.com/t/where-can-i-find-examples-of-rhi-draw-calls-in-unreal-engine-5/1996131/1 "2024-08-29T01:31:34Z")

</div>

I am trying to draw a triangle using functions like `DrawIndexedPrimitive`, `RHIDrawPrimitive`, `RHIDrawIndexedPrimitive`, and `DrawIndexedPrimitiveUP`. Could you help me find a working example for Unreal Engine 5? I am currently testing the migration from another engine to Unreal, where rendering was done using low-level APIs like OpenGL, Metal, and Vulkan. In Unreal, it seems necessary to use the RHI abstraction for this purpose. However, despite several attempts using GPT-generated RHI rendering examples, all of them resulted in crashes. I have also been unable to find a proper example elsewhere. I would greatly appreciate any guidance or examples you could provide. Thank you.

---

<div class="post-metadata">

**Author:** ![TY.Altelas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TY.Altelas](https://forums.unrealengine.com/u/TY.Altelas)\
**Post date:** [August 29, 2024, 9:33am UTC](https://forums.unrealengine.com/t/where-can-i-find-examples-of-rhi-draw-calls-in-unreal-engine-5/1996131/2 "2024-08-29T09:33:34Z")

</div>

you want draw in screen ? or draw in world?

---

<div class="post-metadata">

**Author:** ![user\_3cb9fb5548f30c805d60c9a90befcfa7b67cfde2492c161b50709b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_3cb9fb5548f30c805d60c9a90befcfa7b67cfde2492c161b50709b](https://forums.unrealengine.com/u/user_3cb9fb5548f30c805d60c9a90befcfa7b67cfde2492c161b50709b)\
**Post date:** [October 4, 2024, 3:32pm UTC](https://forums.unrealengine.com/t/where-can-i-find-examples-of-rhi-draw-calls-in-unreal-engine-5/1996131/3 "2024-10-04T15:32:00Z")

</div>

What if I want to draw in world?
