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

Fix building shaders on native linux #102

Merged
merged 1 commit into from
Dec 21, 2020
Merged

Fix building shaders on native linux #102

merged 1 commit into from
Dec 21, 2020

Conversation

unexploredtest
Copy link
Contributor

@unexploredtest unexploredtest commented Dec 20, 2020

If you enable the KOMPUTE_OPT_BUILD_SHADERS=1 on cmake, shaders will fail to build, as "/c/VulkanSDK/1.2.141.2/Bin32/glslangValidator.exe" is chosen as the default binary, which in non-existance on native linux. What has been done if it's not windows, it'll check whether it's WSL or native linux and will choose the appropriate binary, "/c/VulkanSDK/1.2.141.2/Bin32/glslangValidator.exe" for WSL and "/usr/bin/glslangValidator" for Linux.
Gonna be honest, I haven't tested it on windows or WSL, but it should work, hopefully

@axsaucedo
Copy link
Member

Interesting @aliPMPAINT, thanks for the contribution!

@axsaucedo axsaucedo self-requested a review December 21, 2020 16:31
@axsaucedo axsaucedo merged commit e8b536c into KomputeProject:master Dec 21, 2020
@unexploredtest
Copy link
Contributor Author

@axsaucedo Thank you for making this project happen.
Have you tested the new changes on WSL and Windows? Cause I haven't(and couldn't)

@axsaucedo
Copy link
Member

Yes - worked like a charm, thanks again @aliPMPAINT.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants