Look like Dawn does more or less what Kvark described https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/ComputePassEncoder.cpp
Bug 1786566 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Look like Dawn does more or less what Kvark described https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/ComputePassEncoder.cpp https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/IndirectDrawValidationEncoder.cpp;l=238;drc=aaea55c708c63d53a89fb525484aa94747599714;bpv=1;bpt=1
Look like Dawn does more or less what Kvark described: https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/IndirectDrawValidationEncoder.cpp;l=238;drc=aaea55c708c63d53a89fb525484aa94747599714;bpv=1;bpt=1 Note that special care goes into batching validation of the everything in the same buffer into one dispatch of the validation shader. There's a scratch buffer helper that is allocated/resized on demand and the validation shader is lazily created.