Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL Renderer: use shaders cross-compiler #258

Open
Xottab-DUTY opened this issue Oct 21, 2018 · 5 comments
Open

OpenGL Renderer: use shaders cross-compiler #258

Xottab-DUTY opened this issue Oct 21, 2018 · 5 comments

Comments

@Xottab-DUTY
Copy link
Member

Xottab-DUTY commented Oct 21, 2018

Source code compilers:

Bytecode compilers are not suitable, we need to compile from sources.
However, here's the list of some bytecode compilers:

Other useful links:
Decompilers:

Other projects:

Playground, testing, live coding:

Other suggestions?

This issue is a sub-task of #280

@ryao
Copy link

ryao commented Oct 21, 2018

@Xottab-DUTY I don't think that the DXVK bytecode compiler supports SM 3.0. Also, DXBC is the name of HLSL bytecode. I believe stands for DirectX ByteCode.

@Xottab-DUTY
Copy link
Member Author

Xottab-DUTY commented Oct 21, 2018

I don't think that the DXVK bytecode compiler supports SM 3.0.

Oh, that was a typo..

Also, DXBC is the name of HLSL bytecode. I believe stands for DirectX ByteCode.

I just removed this text then, since HLSLcc is bytecode compiler too.

@Xottab-DUTY Xottab-DUTY changed the title OpenGL Renderer: use shaders cross-compiler OpenGL Renderer: consider to use shaders cross-compiler Nov 21, 2018
@Xottab-DUTY Xottab-DUTY mentioned this issue Nov 21, 2018
34 tasks
@Xottab-DUTY Xottab-DUTY added this to the OpenGL Renderer milestone Nov 21, 2018
@Xottab-DUTY Xottab-DUTY added Developer Experience Engine's programmer experience Modmaker Experience Modmaker experience with OpenXRay Player Experience Portability labels Aug 2, 2019
@Xottab-DUTY Xottab-DUTY changed the title OpenGL Renderer: consider to use shaders cross-compiler OpenGL Renderer: use shaders cross-compiler Aug 17, 2019
@Xottab-DUTY Xottab-DUTY pinned this issue Oct 17, 2019
@375gnu
Copy link
Contributor

375gnu commented Apr 1, 2020

2 additional, but i haven't work with them, just found accidentally:
https://github.com/Thekla/hlslparser
https://github.com/aras-p/hlsl2glslfork

@Xottab-DUTY Xottab-DUTY mentioned this issue Oct 28, 2020
8 tasks
@MerijnHendriks
Copy link
Contributor

Looks like dxc now comes with a SPIR-V backend enabled.
The C++ API for cross compiling looks managable.

What simple converted program output looks like:

@Xottab-DUTY
Copy link
Member Author

Xottab-DUTY commented Oct 10, 2021

None of existing cross-compilers is capable of cross-compiling S.T.AL.K.E.R. shaders. And! we have a strong requirement to not change anything in the game assets (shaders are game assets too)...

We could try to improve dxc or glslang to make it work, but the fact that there are no compilers that can compile these shaders actually tempts me to make my own compiler.
image

@Xottab-DUTY Xottab-DUTY unpinned this issue Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To do
Development

No branches or pull requests

4 participants