Set shader stage in reflection for compute shaders

Missing this meant an incorrect stage flag would be passed to
vkGetShaderInfoAMD for compute shaders when getting a disassembly.
This commit is contained in:
Alex Smith
2017-10-25 19:17:40 +02:00
committed by Baldur Karlsson
parent a379b9283e
commit 27ef460546
+1
View File
@@ -376,6 +376,7 @@ void VulkanCreationInfo::Pipeline::Init(VulkanResourceManager *resourceMan, Vulk
if(reflData.entryPoint.empty())
{
reflData.entryPoint = shad.entryPoint;
reflData.stage = StageIndex(pCreateInfo->stage.stage);
SPVModule &spv = info.m_ShaderModule[id].spirv;
spv.MakeReflection(ShaderStage::Compute, reflData.entryPoint, reflData.refl, reflData.mapping,
reflData.patchData);