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

GLSL compilation failed for shader Stereo3D Screen Quad #4

Open
D1vt opened this issue Nov 12, 2022 · 4 comments
Open

GLSL compilation failed for shader Stereo3D Screen Quad #4

D1vt opened this issue Nov 12, 2022 · 4 comments

Comments

@D1vt
Copy link

D1vt commented Nov 12, 2022

Hi! I was able to run the code successfully on Unity for Windows. However, now I need to create some Unity scenes in Linux and when I import the package I get the error: [18:52:52] GLSL compilation failed for shader Stereo3D Screen Quad 0:31(38) error duplicate storage qualifier and the whole screen turns light purple (exactly as when a material is missing). I am using Unity 2019.4.40f1

Any solution to that?

@Vital-Volkov
Copy link
Owner

Vital-Volkov commented Nov 12, 2022 via email

@D1vt
Copy link
Author

D1vt commented Nov 25, 2022

So I got a bit deeper into that, even in Windows if I change the Direct3D11 in the Players settings to Vulkan I get the same error again as the shader is not recognized. So it is not a linux problem but instead, the shader in this form is available only for the Direct3D11 and not in Vulkan/OpenGL etc. Is there any case to rewrite or help me rewrite the shader for Vulkan or OpenGL?

@Vital-Volkov
Copy link
Owner

Ok I'll test it and rewrite in nearest future)

@Vital-Volkov
Copy link
Owner

Hi! OK I rewrote the shader and code for other 3D API (DX12, Vulkan, GLCore, GLES3 tested). Problem was that other API's are not work with complex structuredBuffer and .blit not work in GLCore and GLES3. I separated vertex position and UV data to two buffers and replace .blit with drawProcedural and all 5 API's working OK (tested on Windows10 Unity 2021) except deprecated GLES2.

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

2 participants