Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
4 results across 6 corpora for GPUQueue: copyExternalImageToTexture() method.
Developer library 4
GPUQueue
- 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 snapshot taken from a source image, video, or canvas into a given GPUTexture. - onSubmittedWorkDone() - : Returns a Promise that resolves when all the work submitted to the GPU via this `GPUQueue` at the point the
GPUQueue: copyExternalImageToTexture() method
WebGPU API The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture. Using this function allows the user agent to determine the most efficient way to copy the data over for each source type. ## Syntax ```js-nolint copyExternalImageToTexture(source, destination, copySize) ``` ### Parameters - `source` - : An ob
GPUDevice: createTexture() method
loat` - `rgb10a2uint` - `rgb10a2unorm` - `rg11b10ufloat` - Using the following `GPUTexture` formats in the destination [`texture`](/docs/Web/API/GPUQueue/copyExternalImageToTexture#texture) of GPUQueue.copyExternalImageToTexture() calls: - `r16unorm` - `rg16unorm` - `rgba16unorm` > [!NOTE] > Enabling the `texture-formats-tier1` feature automatically enables the `rg11b10ufloat-renderable` feature, which a
GPUTexture
ng an image bitmap using createImageBitmap(). - Creating a new `GPUTexture` using `createTexture()`. - Copying the image bitmap into the texture using GPUQueue.copyExternalImageToTexture(). ```js // … let cubeTexture; { const img = document.createElement("img"); img.src = new URL( "../../../assets/img/Di-3d.png", import.meta.url, ).toString(); await img.decode(); const imageBitmap = await create