Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for GPUQueue: submit() method.
Developer library 5
GPUQueue
WebGPU API The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU. A device's primary queue is accessed via the GPUDevice.queue property. ## Instance properties - label - : A string providing a label that can be used to identify the object, for example in GPUError messages or console warnings. ## Instance methods - copyExternalImageToTexture() - : Copies a snapsho
GPUQueue: onSubmittedWorkDone() method
WebGPU API The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this `GPUQueue` at the point the method is called has been processed. This includes the completion of any mapAsync() calls made on `GPUBuffer`s used in commands submitted to the queue, before `onSubmittedWorkDone()` is called. Note: In most cases, you do _not_ need
GPUQueue: submit() method
WebGPU API The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU. ## Syntax ```js-nolint submit(commandBuffers) ``` ### Parameters - `commandBuffers` - : An array of GPUCommandBuffer objects containing the commands to be enqueued for processing by the GPU. The array must not contain duplicate `GPUCommandBuff
WebGPU API
se in the [compute pipeline example](#basic_compute_pipeline) to read data from the GPU back to JavaScript. However, in this case we are going to use the handy GPUQueue.writeBuffer() convenience method, which takes as its parameters the buffer to write to, the data source to write from, an offset value for each, and the size of data to write (we've specified the whole length of the array). The browser then works out
GPUCommandBuffer
WebGPU API The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution. A `GPUCommandBuffer` is created via the GPUCommandEncoder.finish() method; the GPU commands recorded within are submitted for execution by passing the `GPUCommandBuffer` into the parameter of a GPUQueue.submit() call. > [!NOTE] > Once a `GPUCommandBuffe