<div dir="ltr"><div style="font-size:12.800000190734863px"><div><div>Hello,</div><div><br></div><div>I'm trying to build an application and would like to load SPIR-V binary files, and JIT Compile it via LLVM to run shaders on CPU.</div><div><br></div><div>I would like to use a library (or possibly build my own) that parses SPIR-V and JIT compiles via LLVM API. Then the library can provide C++ interface to compiled data in memory, and I can access resources or call shader methods via the interface.</div><div><br></div><div>The reason I'm looking for a C++ library is that I want the LLVM part isolated from my applications.</div><div><br></div><div><b>Steps In My Mind</b></div><div>- Load/Parse SPIR-V binary files.</div><div>- Generate LLVM IR with LLVM API to JIT Compile shaders in memory via the library.</div><div>- Use a C++ interface to access resources in memory and bind shader methods to call from an application.</div><div><br></div><div>Is there a C++ library or code example that I can use for this? Or could you please guide me by providing steps to achieve this in the shortest path?</div><div><br></div><div>Best,</div><div><br></div><div>Aaron</div></div><div><br></div></div><div class="gmail-yj6qo" style="font-size:12.800000190734863px"></div></div>