Skip to content

Commit

Permalink
scripts: Don't shallow copy pNext in command recording
Browse files Browse the repository at this point in the history
This is a workaround for #102
  • Loading branch information
jeremyg-lunarg committed Sep 10, 2024
1 parent 9c79823 commit aeb3c84
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 68 deletions.
5 changes: 4 additions & 1 deletion scripts/generators/command_recorder_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ def generateSource(self):
out.append(f' for (uint32_t j = 0; j < {vkmember.fixedSizeArray[0]}; ++j) {{\n')
out.append(f' ptr[i].{vkmember.name}[j] = {src_struct}.{vkmember.name}[j];\n')
out.append(' }\n')
elif vkmember.pointer and 'void' != vkmember.type and vkmember.name != 'pNext':
# https://github.com/LunarG/CrashDiagnosticLayer/issues/102 we need to deep copy the pNext chain here
elif vkmember.name == 'pNext':
out.append(f' ptr[i].{vkmember.name} = nullptr; // pNext deep copy not implemented\n')
elif vkmember.pointer and 'void' != vkmember.type:
out.append(f' ptr[i].{vkmember.name} = nullptr;\n')
out.append(f' if ({src_struct}.{vkmember.name}) {{\n')
if vkmember.length is not None and len(vkmember.length) > 0:
Expand Down
Loading

0 comments on commit aeb3c84

Please sign in to comment.