bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

Home Page:https://bkaradzic.github.io/bgfx/overview.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shaderc.cpp incorrectly adds PSSL preamble to compute shader

00bins opened this issue · comments

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 ""