FPixelShaderUtils

All utils for pixel shaders.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "PixelShaderUtils.h"

Syntax

struct FPixelShaderUtils

Remarks

All utils for pixel shaders.

Functions

Name Description

Public function Static

void

 

AddFullscreenPass

(
    FRDGBuilder& GraphBuilder,
    const FGlobalShaderMap* Global...,
    FRDGEventName&& PassName,
    const TShaderRef< TShaderClass >& ...,
    typename TShaderClass::FParameters ...,
    const FIntRect& Viewport,
    FRHIBlendState* BlendState,
    FRHIRasterizerState* Rasterize...,
    FRHIDepthStencilState* DepthSt...,
    uint32 StencilRef
)

Dispatch a pixel shader to render graph builder with its parameters.

Public function Static

void

 

AddRasterizeToRectsPass

(
    FRDGBuilder& GraphBuilder,
    const FGlobalShaderMap* Global...,
    FRDGEventName&& PassName,
    const TShaderRef< TPixelShaderClass...,
    TPassParameters* Parameters,
    const FIntPoint& ViewportSize,
    FRDGBufferSRVRef RectMinMaxBufferSR...,
    uint32 NumRects,
    FRHIBlendState* BlendState,
    FRHIRasterizerState* Rasterize...,
    FRHIDepthStencilState* DepthSt...,
    uint32 StencilRef
)

Rect based pixel shader pass.

Public function Static

void

 

DrawFullscreenPixelShader

(
    FRHICommandList& RHICmdList,
    const FGlobalShaderMap* Global...,
    const TShaderRef< TShaderClass >& ...,
    const typename TShaderClass::FParam...,
    const FIntRect& Viewport,
    FRHIBlendState* BlendState,
    FRHIRasterizerState* Rasterize...,
    FRHIDepthStencilState* DepthSt...,
    uint32 StencilRef
)

Dispatch a full screen pixel shader to rhi command list with its parameters.

Public function Static

void

 

DrawFullscreenQuad

(
    FRHICommandList& RHICmdList,
    uint32 InstanceCount
)

Draw a two triangle on the entire viewport.

Public function Static

void

 

DrawFullscreenTriangle

(
    FRHICommandList& RHICmdList,
    uint32 InstanceCount
)

Draw a single triangle on the entire viewport.

Public function Static

void

 

InitFullscreenPipelineState

(
    FRHICommandList& RHICmdList,
    const FGlobalShaderMap* Global...,
    const TShaderRef< FShader >& Pixel...,
    FGraphicsPipelineStateInitializer&...
)

Initialize a pipeline state object initializer with almost all the basics required to do a full viewport pass.

Public function Static

void

 

UploadRectMinMaxBuffer

(
    FRDGBuilder& GraphBuilder,
    const TArray< FUintVector4, SceneRe...,
    FRDGBufferRef RectMinMaxBuffer
)

Classes

Name

Description

Public class

FRasterizeToRectsVS

Utility vertex shader for rect array based operations.

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