ShaderCompiler: Use compute shader header in compute shaders
This commit is contained in:
parent
5a7759e359
commit
1c6a0073d2
|
@ -133,7 +133,7 @@ std::optional<SPIRVCodeVector> CompileFragmentShader(std::string_view source_cod
|
||||||
|
|
||||||
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code)
|
std::optional<SPIRVCodeVector> CompileComputeShader(std::string_view source_code)
|
||||||
{
|
{
|
||||||
return SPIRV::CompileComputeShader(GetShaderCode(source_code, SHADER_HEADER), APIType::Vulkan,
|
return SPIRV::CompileComputeShader(GetShaderCode(source_code, COMPUTE_SHADER_HEADER),
|
||||||
GetLanguageVersion());
|
APIType::Vulkan, GetLanguageVersion());
|
||||||
}
|
}
|
||||||
} // namespace Vulkan::ShaderCompiler
|
} // namespace Vulkan::ShaderCompiler
|
||||||
|
|
Loading…
Reference in New Issue