WebGPUTextureUtils

Import

WebGPUTextureUtils is an addon, and must be imported explicitly, see Installation#Addons.

import * as WebGPUTextureUtils from 'three/addons/utils/WebGPUTextureUtils.js';

Static Methods

.decompress( blitTexture : CompressedTexture, maxTextureSize : number, renderer : WebGPURenderer ) : Promise.<CanvasTexture> (async)

Returns an uncompressed version of the given compressed texture.

This module can only be used with WebGPURenderer. When using WebGLRenderer, import the function from module:WebGLTextureUtils.

blitTexture

The compressed texture.

maxTextureSize

The maximum size of the uncompressed texture.

Default is Infinity.

renderer

A reference to a renderer.

Default is null.

Returns: A Promise that resolved with the uncompressed texture.

Source

examples/jsm/utils/WebGPUTextureUtils.js