diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-01-20 15:23:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 15:23:53 +0100 |
| commit | 3ab68bd0a2aff6df12388f2c3b5ed7ae3333a6ca (patch) | |
| tree | 9a81824deb4e5a2b29c3eeb5a2adaa3e00720c45 /ext/webgpu/01_webgpu.js | |
| parent | 1cc38f5155bdc5605d74cd959660fa04f782ac63 (diff) | |
revert(#13402): experiment: wgpu sync (#13439)
Diffstat (limited to 'ext/webgpu/01_webgpu.js')
| -rw-r--r-- | ext/webgpu/01_webgpu.js | 49 |
1 files changed, 6 insertions, 43 deletions
diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 45d910c1a..f1d3eb120 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -3061,48 +3061,6 @@ } /** - * @param {GPUBuffer} destination - * @param {GPUSize64} destinationOffset - * @param {GPUSize64} size - */ - clearBuffer(destination, destinationOffset, size) { - webidl.assertBranded(this, GPUCommandEncoder); - const prefix = "Failed to execute 'clearBuffer' on 'GPUCommandEncoder'"; - webidl.requiredArguments(arguments.length, 3, { prefix }); - destination = webidl.converters.GPUBuffer(destination, { - prefix, - context: "Argument 1", - }); - destinationOffset = webidl.converters.GPUSize64(destinationOffset, { - prefix, - context: "Argument 2", - }); - size = webidl.converters.GPUSize64(size, { - prefix, - context: "Argument 3", - }); - const device = assertDevice(this, { prefix, context: "this" }); - const commandEncoderRid = assertResource(this, { - prefix, - context: "this", - }); - const destinationRid = assertResource(destination, { - prefix, - context: "Argument 1", - }); - const { err } = core.opSync( - "op_webgpu_command_encoder_clear_buffer", - { - commandEncoderRid, - destinationRid, - destinationOffset, - size, - }, - ); - device.pushError(err); - } - - /** * @param {string} groupLabel */ pushDebugGroup(groupLabel) { @@ -3245,7 +3203,7 @@ prefix, context: "Argument 3", }); - destination = webidl.converters.GPUBuffer(destination, { + destination = webidl.converters.GPUQuerySet(destination, { prefix, context: "Argument 4", }); @@ -4569,10 +4527,15 @@ webidl.illegalConstructor(); } + get executionTime() { + throw new Error("Not yet implemented"); + } + [SymbolFor("Deno.privateCustomInspect")](inspect) { return `${this.constructor.name} ${ inspect({ label: this.label, + // TODO(crowlKats): executionTime }) }`; } |
