GPUOpen-LibrariesAndSDKs/HIPRTSDK ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple demo app that shows how to use HIP RT for ray tracing on AMD or NVIDIA GPUs. I want something I can open and run that builds the tutorial examples, initializes the HIP RT context, and renders or prints a basic ray intersection result so I can see it working end to end.

Please make it easy to build on Windows and Linux, and if anything is missing, have the setup pull it in or point me to what I need. It should include a few small examples that show a primary ray hitting triangles, and maybe one example for custom primitives or BVH loading if that fits naturally.

Keep the code straightforward and beginner friendly, with clear comments so I can follow the flow from setup to running a kernel. If you need current build details, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab