mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Handle a couple of other instructions for type replacements in postvs
This commit is contained in:
@@ -407,6 +407,19 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
|
||||
editor.PostModify(it);
|
||||
}
|
||||
}
|
||||
else if(it.opcode() == rdcspv::Op::Undef)
|
||||
{
|
||||
rdcspv::OpUndef undef(it);
|
||||
|
||||
auto replIt = typeReplacements.find(undef.resultType);
|
||||
if(replIt != typeReplacements.end())
|
||||
{
|
||||
editor.PreModify(it);
|
||||
undef.resultType = replIt->second;
|
||||
it = undef;
|
||||
editor.PostModify(it);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(rdcspv::Iter it = editor.Begin(rdcspv::Section::Functions); it; ++it)
|
||||
@@ -416,7 +429,8 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
|
||||
it.opcode() == rdcspv::Op::Variable || it.opcode() == rdcspv::Op::AccessChain ||
|
||||
it.opcode() == rdcspv::Op::InBoundsAccessChain || it.opcode() == rdcspv::Op::Bitcast ||
|
||||
it.opcode() == rdcspv::Op::Undef || it.opcode() == rdcspv::Op::ExtInst ||
|
||||
it.opcode() == rdcspv::Op::FunctionCall || it.opcode() == rdcspv::Op::Phi)
|
||||
it.opcode() == rdcspv::Op::FunctionCall || it.opcode() == rdcspv::Op::Phi ||
|
||||
it.opcode() == rdcspv::Op::Select)
|
||||
{
|
||||
editor.PreModify(it);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user