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