FGenerateMips::Execute

Public function for executing the generate mips compute shader

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/GenerateMips.h

Include

#include "GenerateMips.h"

Syntax

static void Execute
(
    FRHICommandListImmediate & RHICmdList,
    FRHITexture * InTexture,
    TSharedPtr< FGenerateMipsStruct > & ExternalMipsStructCache,
    const FGenerateMipsParams & InParams,
    bool bAllowRenderBasedGeneration
)

Remarks

Public function for executing the generate mips compute shader

Parameters

Parameter

Description

RHICmdList

RHI command list to use to schedule generation of mips

InTexture

Texture to generate mips for

InParams

Parameters influencing mips generation (Default sampler is always bilinear clamp)

ExternalMipsStructCache

Shared pointer to provide a location to cache internal parameters and resource needed to generate mips (provide if generation is triggered repeatedly)

bAllowRenderBasedGeneration

Set to true if generation via classic rendering is allowable (some platforms do not support compute based generation, but some use cases may disallow this)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss