mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-09 08:11:06 +00:00
Use proper constant IDs instead of relying on output constID
This commit is contained in:
@@ -933,7 +933,12 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
|
||||
std::vector<uint32_t> words = {outs[o].privatePtrID, readPtr, patchData.outputs[o].ID};
|
||||
|
||||
for(uint32_t idx : patchData.outputs[o].accessChain)
|
||||
words.push_back(outs[idx].constID);
|
||||
{
|
||||
if(idxs[idx] == 0)
|
||||
idxs[idx] = editor.AddConstantImmediate<uint32_t>(idx);
|
||||
|
||||
words.push_back(idxs[idx]);
|
||||
}
|
||||
|
||||
// type *readPtr = globalvar.globalsub...;
|
||||
ops.push_back(SPIRVOperation(spv::OpAccessChain, words));
|
||||
|
||||
Reference in New Issue
Block a user