GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for GPUCommandEncoder.

Developer library 6

GPUQueue

: ```js device.queue.writeBuffer(vertexBuffer, 0, vertices, 0, vertices.length); ``` Later on, a set of commands is encoded into a GPUCommandBuffer using the GPUCommandEncoder.finish() method. The command buffer is then passed into the queue via a submit() call, ready to be processed by the GPU. ```js device.queue.submit([commandEncoder.finish()]); ``` > [!NOTE] > Study the [WebGPU samples](https://webgpu.github.

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue

GPUQueue: submit() method

eginOcclusionQuery(). ## Examples In our [basic render demo](https://mdn.github.io/dom-examples/webgpu-render-demo/), a number of commands are recorded via a GPUCommandEncoder: ```js // … // Create GPUCommandEncoder const commandEncoder = device.createCommandEncoder(); // Create GPURenderPassDescriptor to tell WebGPU which texture to draw into, then initiate render pass const renderPassDescriptor = { colorAtt

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit

GPUTextureView

.createView() calls) are used, both as a `resource` in a GPUDevice.createBindGroup() call, and as a provided `view` in the `depthStencilAttachment` object of a GPUCommandEncoder.beginRenderPass() descriptor. ```js const uniformBindGroup = device.createBindGroup({ layout: pipeline.getBindGroupLayout(0), entries: [ { binding: 0, resource: { buffer: uniformBuffer, offset: 0,

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView

WebGPU API

s done, we can actually run a rendering pass and draw something onto our `<canvas>`. To encode any commands to be later issued to the GPU, you need to create a GPUCommandEncoder instance, which is done using a GPUDevice.createCommandEncoder() call. ```js const commandEncoder = device.createCommandEncoder(); ``` Next up we start the rendering pass running by creating a GPURenderPassEncoder instance with a GPUCommand

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API

GPUComputePassEncoder

PU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder. A compute pipeline contains a single compute stage in which a compute shader takes general data, processes it in parallel across a specified number of workgroups, then returns the result in one or more buffers. A `GPUComputePassEncoder` ob

GPUComputePassEncoder: setPipeline() method

alue None (undefined). ## Examples In our [basic compute demo](https://mdn.github.io/dom-examples/webgpu-compute-demo/), several commands are recorded via a GPUCommandEncoder. Most of these commands originate from the GPUComputePassEncoder created via `beginComputePass()`. The `setPipeline()` call is used as appropriate to set the pipeline to use for this pass. ```js const BUFFER_SIZE = 1000; // … // Create GPU

JSON results · Services directory