UNPKG

pixi.js

Version:

<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">

23 lines (22 loc) 817 B
/// <reference types="@webgpu/types" /> /** * A class which generates mipmaps for a GPUTexture. * Thanks to toji for the original implementation * https://github.com/toji/web-texture-tool/blob/main/src/webgpu-mipmap-generator.js * @category rendering * @ignore */ export declare class GpuMipmapGenerator { device: GPUDevice; sampler: GPUSampler; pipelines: Record<string, GPURenderPipeline>; mipmapShaderModule: any; constructor(device: GPUDevice); private _getMipmapPipeline; /** * Generates mipmaps for the given GPUTexture from the data in level 0. * @param {module:External.GPUTexture} texture - Texture to generate mipmaps for. * @returns {module:External.GPUTexture} - The originally passed texture */ generateMipmap(texture: GPUTexture): GPUTexture; }