/** * @import { GraphicsDevice } from '../../../../platform/graphics/graphics-device.js' * @import { ScopeId } from '../../../../platform/graphics/scope-id.js' * @import { Texture } from '../../../../platform/graphics/texture.js' * @import { FramePassSmaa } from './frame-pass-smaa.js' */ /** * One of the passes of SMAA, rendering a full screen quad with the textures and the parameters it * reads. * * @ignore */ export class RenderPassSmaa extends RenderPassShaderQuad { /** * @param {GraphicsDevice} device - The graphics device. * @param {FramePassSmaa} smaa - The frame pass the pass belongs to. * @param {string} name - The name of the pass, which its shader is named after. * @param {string} chunk - The name of the fragment shader chunk. */ constructor(device: GraphicsDevice, smaa: FramePassSmaa, name: string, chunk: string); /** * The frame pass the pass belongs to, holding the scene and the parameters. * * @type {FramePassSmaa} */ smaa: FramePassSmaa; /** * The textures the pass reads, and the uniforms they are bound to. * * @type {{ scopeId: ScopeId, texture: Texture|null }[]} * @private */ private _textures; /** * Sets the texture bound to a uniform when the pass renders. * * @param {string} name - The name of the uniform. * @param {Texture|null} texture - The texture. */ setTexture(name: string, texture: Texture | null): void; } import { RenderPassShaderQuad } from '../../../../scene/graphics/render-pass-shader-quad.js'; import type { FramePassSmaa } from './frame-pass-smaa.js'; import type { Texture } from '../../../../platform/graphics/texture.js'; import type { GraphicsDevice } from '../../../../platform/graphics/graphics-device.js';