diff --git a/webgpu_recorder.js b/webgpu_recorder.js index d0c641a..a0637d3 100644 --- a/webgpu_recorder.js +++ b/webgpu_recorder.js @@ -595,7 +595,12 @@ window.addEventListener('load', main); _recordCommand(async, object, method, result, args) { if (this._isRecording) { if (result) + { + if (typeof(result) === "string") + return; + this._registerObject(result); + } async = async ? "await " : "";