mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
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:
committed by
Baldur Karlsson
parent
a379b9283e
commit
27ef460546
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user