Timeline for How do I tell what kind of shader an hlsl shader is by looking at the code?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30, 2023 at 17:02 | vote | accept | Ethan | ||
Oct 28, 2023 at 9:03 | answer | added | pmw1234 | timeline score: 2 | |
Oct 28, 2023 at 6:20 | comment | added | Thomas | Why don't you convert it by hand? GLSL and HLSL are not so different. These 550 lines of code would take a few hours to convert by hand including testing... | |
Oct 27, 2023 at 23:00 | history | edited | Nicol Bolas |
edited tags
|
|
Oct 27, 2023 at 17:39 | comment | added | pmw1234 | then you have to roll them into a real shader...or figure out the includes and put them together, there is nothing complex about it. You just have to take a few minutes and do the work don't ask us to do it for you. | |
Oct 27, 2023 at 16:58 | comment | added | Ethan | @Thomas The thing is I'm trying to use this diligentgraphics.com/diligent-engine/shader-converter/… to convert the shader to glsl, but it requires I give it the shader type. | |
Oct 27, 2023 at 15:01 | comment | added | pmw1234 | Look at the meta info in those files (files that have meta at the end)to find which file actually contain shaders. The meta file for the file linked in the question is pretty clearly functions and is listed as shader includes. Look at some of the other meta files will list actual shaders. | |
Oct 27, 2023 at 14:42 | comment | added | Thomas | The code from the URL looks to me like regular hlsl code... It seems like it is shader stage independent | |
S Oct 27, 2023 at 0:50 | review | First questions | |||
Oct 27, 2023 at 12:56 | |||||
S Oct 27, 2023 at 0:50 | history | asked | Ethan | CC BY-SA 4.0 |