/** * @import { FramePassLuminanceHistogram } from './frame-pass-luminance-histogram.js' * @import { GraphicsDevice } from '../../../../platform/graphics/graphics-device.js' * @import { ScopeId } from '../../../../platform/graphics/scope-id.js' * @import { Texture } from '../../../../platform/graphics/texture.js' */ /** * One step of measuring the luminance histogram, rendering a full screen quad with the textures and * the parameters it reads - see FramePassLuminanceHistogram. * * @ignore */ export class RenderPassHistogramStep extends RenderPassShaderQuad { /** * @param {GraphicsDevice} device - The graphics device. * @param {FramePassLuminanceHistogram} histogram - The frame pass the step belongs to. * @param {string} name - The name of the step, which its shader is named after. * @param {string} chunk - The name of the fragment shader chunk. * @param {string} outputType - The type of the fragment shader output. * @param {Map} defines - The defines of the fragment shader, the sizes it loops * over. */ constructor(device: GraphicsDevice, histogram: FramePassLuminanceHistogram, name: string, chunk: string, outputType: string, defines: Map); /** * The frame pass the step belongs to, holding the parameters. * * @type {FramePassLuminanceHistogram} */ histogram: FramePassLuminanceHistogram; /** * 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 { FramePassLuminanceHistogram } from './frame-pass-luminance-histogram.js'; import type { Texture } from '../../../../platform/graphics/texture.js'; import type { GraphicsDevice } from '../../../../platform/graphics/graphics-device.js';