UNPKG

typegpu

Version:

A thin layer between JS and WebGPU/WGSL that improves development experience and allows for faster iteration.

9 lines (8 loc) 525 B
import type { ExternalImageSource } from './texture.ts'; export declare function getImageSourceDimensions(source: ExternalImageSource): { width: number; height: number; }; export declare function clearTextureUtilsCache(device: GPUDevice): void; export declare function generateTextureMipmaps(device: GPUDevice, texture: GPUTexture, baseMipLevel?: number, mipLevels?: number): void; export declare function resampleImage(device: GPUDevice, targetTexture: GPUTexture, image: ExternalImageSource, layer?: number): void;