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 GPUShaderModule.
Developer library 6
WebGPU API
ntents using Node.textContent. The correct mime type to use for WGSL is `text/wgsl`. To make your shader code available to WebGPU, you have to put it inside a GPUShaderModule via a GPUDevice.createShaderModule() call, passing your shader code as a property inside a descriptor object. For example: ```js const shaderModule = device.createShaderModule({ code: shaders, }); ``` ### Get and configure the canvas contex
GPUComputePassEncoder: setBindGroup() method
up at. This matches the `n` index value of the corresponding [`@group(n)`](https://gpuweb.github.io/gpuweb/wgsl/#attribute-group) attribute in the shader code (GPUShaderModule) used in the related pipeline. - `bindGroup` - : The GPUBindGroup to use for subsequent compute commands, or `null`, in which case any previously-set bind group in the given slot is unset. - `dynamicOffsets` - : A value specifying the offs
GPUComputePassEncoder: dispatchWorkgroups() method
nvocations to perform across each dimension. This matches the behavior of modern native GPU APIs, but differs from the behavior of OpenCL. This means that if a GPUShaderModule defines an entry point with `@workgroup_size(4, 4)`, and work is dispatched to it with the call `passEncoder.dispatchWorkgroups(8, 8);`, the entry point will be invoked 1024 times total — Dispatching a 4 x 4 workgroup 8 times along both the X a
GPUComputePassEncoder: dispatchWorkgroupsIndirect() method
nvocations to perform across each dimension. This matches the behavior of modern native GPU APIs, but differs from the behavior of OpenCL. This means that if a GPUShaderModule defines an entry point with `@workgroup_size(4, 4)`, and work is dispatched to it with the call `dispatchWorkgroupsIndirect(indirectBuffer);` with `indirectBuffer` specifying X and Y dimensions of 8 and 8, the entry point will be invoked 1024 t
GPUShaderModule
WebGPU API The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for [WGSL](https://gpuweb.github.io/gpuweb/wgsl/) shader code that can be submitted to the GPU for execution by a pipeline. A `GPUShaderModule` object instance is created using GPUDevice.createShaderModule(). ## Instance properties - label - : A string providing a label that can be used to
GPUShaderModule: getCompilationInfo() method
WebGPU API The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the `GPUShaderModule`'s compilation. ## Syntax ```js-nolint getCompilationInfo() ``` ### Parameters None. ### Return value A Promise that fulfills with a GPUCompilationInfo object. GPUCompilationInfo contains a `messages` proper