mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
ShaderCompiler: Use compute shader header in compute shaders
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user