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

Shaderc.cpp incorrectly adds PSSL preamble to compute shader #3205

Closed
00bins opened this issue Nov 20, 2023 · 1 comment
Closed

Shaderc.cpp incorrectly adds PSSL preamble to compute shader #3205

00bins opened this issue Nov 20, 2023 · 1 comment

Comments

@00bins
Copy link
Contributor

00bins commented Nov 20, 2023

Line 1550 of shaderc.cpp reads

if (profile->lang != ShadingLang::PSSL)
{
	preprocessor.writef(getPsslPreamble() );
}

should read

if (profile->lang == ShadingLang::PSSL)
{
	preprocessor.writef(getPsslPreamble() );
}

This is only a problem if you have pssl support and getPsslPreamble() doesn't return ""

@bkaradzic
Copy link
Owner

Send PR with fix.

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