Skip to content
Permalink
Browse files
Merge pull request #10830 from OatmealDome/vk-compute-shader-header
ShaderCompiler: Use compute shader header in compute shaders
  • Loading branch information
AdmiralCurtiss committed Jul 9, 2022
2 parents 5a7759e + 1c6a007 commit 5ce73d9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -133,7 +133,7 @@ std::optional<SPIRVCodeVector> CompileFragmentShader(std::string_view source_cod

std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code)
{
return SPIRV::CompileComputeShader(GetShaderCode(source_code, SHADER_HEADER), APIType::Vulkan,
GetLanguageVersion());
return SPIRV::CompileComputeShader(GetShaderCode(source_code, COMPUTE_SHADER_HEADER),
APIType::Vulkan, GetLanguageVersion());
}
} // namespace Vulkan::ShaderCompiler

0 comments on commit 5ce73d9

Please sign in to comment.