Merge pull request #8696 from howard0su/cleanup_shadow

Cleanup warnings of -Wmissing-declarations
This commit is contained in:
Léo Lam
2020-04-27 15:33:01 +02:00
committed by GitHub
3 changed files with 7 additions and 5 deletions

View File

@ -107,8 +107,10 @@ static const char SUBGROUP_HELPER_HEADER[] = R"(
#define SUBGROUP_MAX(value) value = subgroupMax(value)
)";
std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage, const char* stage_filename,
std::string_view source, std::string_view header)
static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
const char* stage_filename,
std::string_view source,
std::string_view header)
{
if (!InitializeGlslang())
return std::nullopt;