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 GPUDevice: createCommandEncoder() method.

Developer library 6

GPUTextureView

view: depthTexture.createView(), depthClearValue: 1.0, depthLoadOp: "clear", depthStoreOp: "store", }, }; // … const commandEncoder = device.createCommandEncoder(); const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); // … ``` ## Specifications ## Browser compatibility ## See also - The [WebGPU API](/docs/Web/API/WebGPU_API)

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

WebGPU API

ing 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 GPUCommandEncoder.beginRenderPass() call. This method takes a descript

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

GPUComputePassEncoder: setBindGroup() method

index and bind group. ```js const BUFFER_SIZE = 1000; // … // Create GPUCommandEncoder to encode commands to issue to the GPU const commandEncoder = device.createCommandEncoder(); // Initiate compute pass const passEncoder = commandEncoder.beginComputePass(); // Issue commands passEncoder.setPipeline(computePipeline); passEncoder.setBindGroup(0, bindGroup); passEncoder.dispatchWorkgroups(Math.ceil(BUFFER_SIZE /

GPUComputePassEncoder: dispatchWorkgroups() method

lobal buffer size and the shader workgroup count. ```js // … // Create GPUCommandEncoder to encode commands to issue to the GPU const commandEncoder = device.createCommandEncoder(); // Initiate compute pass const passEncoder = commandEncoder.beginComputePass(); // Issue commands passEncoder.setPipeline(computePipeline); passEncoder.setBindGroup(0, bindGroup); passEncoder.dispatchWorkgroups(Math.ceil(BUFFER_SIZE /

GPURenderBundleEncoder

t, uniformTime.buffer); renderPassDescriptor.colorAttachments[0].view = context .getCurrentTexture() .createView(); const commandEncoder = device.createCommandEncoder(); const passEncoder = commandEncoder.beginRenderPass(renderPassDescriptor); if (settings.renderBundles) { passEncoder.executeBundles([renderBundle]); } else { recordRenderPass(passEncoder); } passEncoder.end(); devic

GPUDevice

ine, and is used as a template when creating GPUBindGroups. - createBuffer() - : Creates a GPUBuffer in which to store raw data to use in GPU operations. - createCommandEncoder() - : Creates a GPUCommandEncoder, which is used to encode commands to be issued to the GPU. - createComputePipeline() - : Creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.

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

JSON results · Services directory