upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/command_list.h
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 11:42:13 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 11:42:13 -0500
commite3c972d0d5c28107a21b3fcd3aa0c8b25a66878f (patch)
tree21e7b369de1a8f8424c4b3df28330fdb733785d2 /runtime/src/command_list.h
parent24ecfbbd24ed34f532afc7033a1e3217becccb24 (diff)
parentb76c78acdb825ec65be5164a5ce89210e806ba60 (diff)
Merge pull request #2145 from KanameS
Diffstat (limited to 'runtime/src/command_list.h')
-rw-r--r--runtime/src/command_list.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/src/command_list.h b/runtime/src/command_list.h
index c221ad062..2b6c03358 100644
--- a/runtime/src/command_list.h
+++ b/runtime/src/command_list.h
@@ -772,11 +772,15 @@ public:
772 return append(ClearUnorderedAccess{view, is_float, values, {rects.begin(), rects.end()}}); 772 return append(ClearUnorderedAccess{view, is_float, values, {rects.begin(), rects.end()}});
773 } 773 }
774 774
775 // ExecuteBundle copies the closed bundle's commands at the call site. The COM layer validates D3D12 list 775 // ExecuteBundle copies the closed bundle's commands [first, last) at the call site. The COM layer validates D3D12
776 // types and bundle-only restrictions before calling this method. 776 // list types and bundle-only restrictions before calling this method, and calls it once per stretch between the
777 bool execute_bundle(const CommandList& bundle) { 777 // bundle's deferred state calls and draws (d3d12_com.cpp, GraphicsCommandList::ExecuteBundle).
778 bool execute_bundle(const CommandList& bundle, std::size_t first = 0, std::size_t last = std::size_t(-1)) {
778 if (this == &bundle || closed_ || !bundle.closed_) return false; 779 if (this == &bundle || closed_ || !bundle.closed_) return false;
779 commands_.insert(commands_.end(), bundle.commands_.begin(), bundle.commands_.end()); 780 last = std::min(last, bundle.commands_.size());
781 if (first < last)
782 commands_.insert(commands_.end(), bundle.commands_.begin() + std::ptrdiff_t(first),
783 bundle.commands_.begin() + std::ptrdiff_t(last));
780 return true; 784 return true;
781 } 785 }
782 786