@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
21 lines (20 loc) • 681 B
TypeScript
/**
* A WebGPU helper class implementing texture mipmap generation.
*
* @ignore
*/
export class WebgpuMipmapRenderer {
constructor(device: any);
/** @type {import('./webgpu-graphics-device.js').WebgpuGraphicsDevice} */
device: import("./webgpu-graphics-device.js").WebgpuGraphicsDevice;
shader: Shader;
minSampler: any;
destroy(): void;
/**
* Generates mipmaps for the specified WebGPU texture.
*
* @param {import('./webgpu-texture.js').WebgpuTexture} webgpuTexture - The texture to generate mipmaps for.
*/
generate(webgpuTexture: import("./webgpu-texture.js").WebgpuTexture): void;
}
import { Shader } from '../shader.js';