Class HistogramPass
Luminance histogram rendering pass. Uses compute shaders.
Assembly: FlaxEngine.dll
File: Engine/Renderer/HistogramPass.h
Syntax
public class HistogramPass : public RendererPass
Methods
Dispose()
Cleanup service data.
Declaration
public virtual void Dispose() override
Overrides
GetHistogramMad(float& multiply, float& add)
Gets the multiply and add value to pack or unpack data for histogram buffer.
Declaration
public void GetHistogramMad(float& multiply, float& add)
Parameters
float
multiply
The multiply factor. |
float
add
The add factor. |
Init()
Initialize service.
Declaration
public virtual bool Init() override
Returns
bool
|
Overrides
Render(RenderContext& renderContext, GPUTexture* colorBuffer)
Performs the histogram rendering.
Declaration
public GPUBuffer* Render(RenderContext& renderContext, GPUTexture* colorBuffer)
Parameters
RenderContext
renderContext
The rendering context. |
GPUTexture
colorBuffer
The input color buffer to use as a luminance source. |
Returns
GPUBuffer
The created histogram, or null if failed or not supported. |
setupResources()
Declaration
protected virtual bool setupResources() override
Returns
bool
|
Overrides
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
String
|