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

Shaders for Vulkan? #2

Open
ChristophHaag opened this issue Jan 9, 2018 · 8 comments
Open

Shaders for Vulkan? #2

ChristophHaag opened this issue Jan 9, 2018 · 8 comments

Comments

@ChristophHaag
Copy link

For example for a Linux build for OpenVR/SteamVR you're supposed to change the renderer to Vulkan. I tried doing that on 2017.3f01 (latest available unity editor for linux) but then unity says the shaders don't compile.

@bonzajplc
Copy link
Owner

Ok I found it - will fix in the evening.

@bonzajplc
Copy link
Owner

Ok I comitted a fix, it builds and works on Windows now (OpenVR only).

@ChristophHaag
Copy link
Author

Thanks for looking at this. I'm getting a different error
screenshot_20180110_004517
but as I said I'm on 2017.3.0f1 which is the latest 2017.3.x editor that is available for linux. Perhaps this error will disappear when unity releases 2017.3.0f3 or later for linux.

@bonzajplc
Copy link
Owner

Weird,

I had the same bug, and removing the unused sampler did the trick.

Can you edit one line in this shader (add white space) and rebuild?

@ChristophHaag
Copy link
Author

Oh okay. I can't seem to get rid of the error, probably have to reimport the whole project. Also 2017.3.0f1 is extremely buggy, I'll just wait for a newer unity version and try again. (Or maybe try 2017.2 again, that one worked much better).

@giezu
Copy link
Contributor

giezu commented Jan 10, 2018

I've tried to reproduce your problem, but I get this error only on my fork (latest commit before fix), so in be61892 it should be fixed. Instead I have some problems with compute shaders (maybe it's problem with Vulkan under Linux since it's marked as experimental in Unity).

0(8) : error C5041: cannot locate suitable resource to bind variable "ImmCB_0_0_1". Possibly large array. 0(61) : error C5041: cannot locate suitable resource to bind variable "TempArray0". Possibly large array.

Could you again get clean copy, open it in Unity and convert from 2017.3.0f3 to 2017.3.0f1 under Linux as I did?

@ChristophHaag
Copy link
Author

I reimported the whole project and now it works.
Here is my linux build: https://haagch.frickel.club/files/FinalAudition-2017.3.0f1.tar.xz
It becomes unresponsive after the first two scenes and causes a GPU hang shortly after, but it does run.

Thanks!

@bonzajplc
Copy link
Owner

Heh ;), Thank you for checking it. We will investigate.

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

No branches or pull requests

3 participants