mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Use access chain for looking up builtins from struct. Refs #2911
This commit is contained in:
@@ -652,8 +652,7 @@ void AnnotateShader(const ShaderReflection &refl, const SPIRVPatchData &patchDat
|
||||
rdcspv::Id subElement = locationGather.add(
|
||||
rdcspv::OpAccessChain(ptrType, editor.MakeId(), patchData.inputs[i].ID, chain));
|
||||
|
||||
ret =
|
||||
locationGather.add(rdcspv::OpLoad(loadType, editor.MakeId(), patchData.inputs[i].ID));
|
||||
ret = locationGather.add(rdcspv::OpLoad(loadType, editor.MakeId(), subElement));
|
||||
}
|
||||
|
||||
if(loadType != varType)
|
||||
|
||||
Reference in New Issue
Block a user