I have a lot of structures and have duplicates in C++ and HLSL code. What is your advise on how to share structure between HLSL and C++ parts. I think i would need file with typedefs for common types in C++ part and shared header with structures. How have you handled it?
Asked
Active
Viewed 210 times
2
-
What did your internet search provide? – Thomas Matthews Apr 24 '14 at 20:06
-
1@ThomasMatthews , nothing. Or i don't know how to search for such thing. – Yola Apr 25 '14 at 06:29
-
Does this answer your question? [How to share a struct between C++/DirectX and HLSL?](https://stackoverflow.com/questions/34886497/how-to-share-a-struct-between-c-directx-and-hlsl) – Pablo H Mar 27 '23 at 18:17