Originally posted by smitty3268
View Post
Announcement
Collapse
No announcement yet.
Google Gets DirectX Shader Compiler Working On Linux
Collapse
X
-
Originally posted by Mike Frett View PostLets say that for some reason Microsoft ported DirectX to Linux. I know it's what you guys want but I think that would be terrible for Linux and OpenGL, a devastating move.
If they manage to make a compiler that from DX creates something that can run on OpenGL or Vulkan/Spir-V, then it's not going to be that terrible, as OpenGL/Vulkan will still be required to have the contraption work at all, and using them directly would be more efficient.
Comment
-
Originally posted by slalomsk8er View PostI still can't envision how this fits in to the big picture.
Can someone please elaborate on when/where this code is used?- build game for release
- port game to OpenGL/Vulkan
- load game
- run game
If you use a cross-platform game engine as a developer, chances are you never write any opengl/hlsl/vulkan shader code, you have node based UI system's that abstract this. The engine devs itself use whatever works best, but so far they already have working and tested in-house solution's that deal with the platform conversion, so i guess they don't really need this. The main problem is that each shader language has its own very specific anomaly's, as example you could not use most game hlsl shaders on other hlsl shader compatible applications like 3dsMax, let alone other games. This means you have to carefully write your cross platform pipeline anyway.
You would have to omit any of the advanced features of the shader language to get to a point where you could recompile to different output formats and expect this to work.
So it comes down to how many features, anomaly's you have in your shader code and how much extra work you want to put into building your export pipeline, especially if you rely on HLSL semantics or annotations, which do not fully exist in other shader languages.
tldr; I don't think this changes much for anyone, except google projects.Last edited by andy22; 27 June 2018, 06:08 AM.
- Likes 2
Comment
-
Am I correct in thinking that if SPIR-V ever upgrades its bytecode format (i.e similar to i.e GLSL 1.2 to GLSL 4.0 does for text) that this HLSL to SPIR-V transpiler will be churning out deprecated shader code?
Surely this idea / technology is not new and is a tad similar to NVIDIA's old Cg transpiler just instead of using Cg as a language, we are using HLSL as the abstraction layer language.
Comment
-
"Do you know if is it possible to compile DirectXShaderCompiler on Linux? It is mainly for having the compiler to generate SPIR-V shaders for Vulkan from HLSL sources on Linux."
-Cry-Mory junior render engineer at Crytek
Do you know if is it possible to compile DirectXShaderCompiler on Linux? It is mainly for having the compiler to generate SPIR-V shaders for Vulkan from HLSL sources on Linux.
Cryengine has alot of games that could be ported : https://en.wikipedia.org/wiki/List_of_CryEngine_games
- Likes 1
Comment
Comment