summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
diff options
context:
space:
mode:
authorJun Su <howard0su@gmail.com>2020-03-23 15:59:19 +0800
committerJun Su <howard0su@gmail.com>2020-03-24 20:16:10 +0800
commitb6ff15c13051cdcb9a60f515e206f4255b853d38 (patch)
tree103406ba6fb3b6afdf14942a5390f810fdf875de /Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
parent62707986b7c5c70f34767e70ddf06baf0b14a7c7 (diff)
Cleanup warnings of -Wmissing-declarations
Add static to the functions which is not intentionally export to big scope.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
index 7b6beb11b0..fb267b9319 100644
--- a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
+++ b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
@@ -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;