mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 06:26:30 +00:00
Arguments are allowed to be unnamed in DXIL
This commit is contained in:
@@ -984,7 +984,6 @@ Program::Program(const byte *bytes, size_t length) : alloc(32 * 1024)
|
||||
{
|
||||
Instruction *arg = values.nextValue<Instruction>();
|
||||
arg->type = f->type->members[i];
|
||||
arg->extra(alloc).name = StringFormat::Fmt("arg%zu", i);
|
||||
f->args.push_back(arg);
|
||||
values.addValue();
|
||||
}
|
||||
@@ -2602,6 +2601,10 @@ void LLVMOrderAccumulator::processFunction(Function *f)
|
||||
uint32_t slot = 0;
|
||||
uint32_t curBlock = 0;
|
||||
|
||||
for(Instruction *arg : func.args)
|
||||
if(arg->getName().isEmpty())
|
||||
arg->slot = slot++;
|
||||
|
||||
if(!func.blocks.empty() && func.blocks[0]->name.empty())
|
||||
func.blocks[0]->slot = slot++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user