Search Results for

    Show / Hide Table of Contents

    Class MultiScaler

    Scales an input texture to an output texture (down or up, depending on the relative size between input and output). Can perform image blurring.

    Inheritance
    Singleton
    RendererPass
    MultiScaler
    Inherited Members
    RendererPassBase::_hasValidResources
    RendererPassBase::checkIfSkipPass()
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    MultiScaler
    Object::Flags
    Singleton::Instance()
    RendererPassBase::invalidateResources()
    RendererPassBase::IsReady()
    Object::OnDeleteObject()
    RendererPassBase::RendererPassBase()
    Singleton::Singleton()
    Object::~Object()
    Singleton::~Singleton()
    Assembly: FlaxEngine.dll
    File: Engine/Renderer/Utils/MultiScaler.h
    Syntax
    public class MultiScaler : public RendererPass

    Methods

    Dispose()

    Cleanup service data.

    Declaration
    public virtual void Dispose() override
    Overrides
    RendererPassBase::Dispose()

    DownscaleDepth(GPUContext* context, int32 dstWidth, int32 dstHeight, GPUTexture* src, GPUTextureView* dst)

    Downscales the depth buffer (to half resolution).

    Declaration
    public void DownscaleDepth(GPUContext* context, int32 dstWidth, int32 dstHeight, GPUTexture* src, GPUTextureView* dst)
    Parameters
    GPUContext context

    The context.

    int32 dstWidth

    The width of the destination texture (in pixels).

    int32 dstHeight

    The height of the destination texture (in pixels).

    GPUTexture src

    The source texture.

    GPUTextureView dst

    The destination texture.

    Filter(const FilterMode mode, GPUContext* context, const int32 width, const int32 height, GPUTextureView* src, GPUTextureView* dst, GPUTextureView* tmp)

    Performs texture filtering.

    Declaration
    public void Filter(const FilterMode mode, GPUContext* context, const int32 width, const int32 height, GPUTextureView* src, GPUTextureView* dst, GPUTextureView* tmp)
    Parameters
    FilterMode mode

    The filter mode.

    GPUContext context

    The context.

    int32 width

    The output width.

    int32 height

    The output height.

    GPUTextureView src

    The source texture.

    GPUTextureView dst

    The destination texture.

    GPUTextureView tmp

    The temporary texture (should have the same size as destination texture).

    Filter(const FilterMode mode, GPUContext* context, const int32 width, const int32 height, GPUTextureView* srcDst, GPUTextureView* tmp)

    Performs texture filtering.

    Declaration
    public void Filter(const FilterMode mode, GPUContext* context, const int32 width, const int32 height, GPUTextureView* srcDst, GPUTextureView* tmp)
    Parameters
    FilterMode mode

    The filter mode.

    GPUContext context

    The context.

    int32 width

    The output width.

    int32 height

    The output height.

    GPUTextureView srcDst

    The source and destination texture.

    GPUTextureView tmp

    The temporary texture (should have the same size as destination texture).

    Init()

    Initialize service.

    Declaration
    public virtual bool Init() override
    Returns
    bool

    Overrides
    RendererPassBase::Init()

    OnShaderReloading(Asset* obj)

    Declaration
    public void OnShaderReloading(Asset* obj)
    Parameters
    Asset obj

    setupResources()

    Declaration
    protected virtual bool setupResources() override
    Returns
    bool

    Overrides
    RendererPassBase::setupResources()

    ToString()

    Gets the string representation of this object.

    Declaration
    public virtual String ToString() const override
    Returns
    String

    Overrides
    Object::ToString()

    Upscale(GPUContext* context, const Viewport& viewport, GPUTexture* src, GPUTextureView* dst)

    Upscales the texture.

    Declaration
    public void Upscale(GPUContext* context, const Viewport& viewport, GPUTexture* src, GPUTextureView* dst)
    Parameters
    GPUContext context

    The context.

    Viewport viewport

    The viewport of the destination texture.

    GPUTexture src

    The source texture.

    GPUTextureView dst

    The destination texture.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat