All utils for pixel shaders. 更多...
#include <PixelShaderUtils.h>
类 | |
| class | FRasterizeToRectsVS |
| Utility vertex shader for rect array based operations. 更多... | |
静态 Public 成员函数 | |
| template<typename TShaderClass > | |
| static void | AddFullscreenPass (FRDGBuilder &GraphBuilder, const FGlobalShaderMap *GlobalShaderMap, FRDGEventName &&PassName, const TShaderRef< TShaderClass > &PixelShader, typename TShaderClass::FParameters *Parameters, const FIntRect &Viewport, FRHIBlendState *BlendState=nullptr, FRHIRasterizerState *RasterizerState=nullptr, FRHIDepthStencilState *DepthStencilState=nullptr, uint32 StencilRef=0) |
| Dispatch a pixel shader to render graph builder with its parameters. | |
| template<typename TPixelShaderClass , typename TPassParameters > | |
| static void | AddRasterizeToRectsPass (FRDGBuilder &GraphBuilder, const FGlobalShaderMap *GlobalShaderMap, FRDGEventName &&PassName, const TShaderRef< TPixelShaderClass > &PixelShader, TPassParameters *Parameters, const FIntPoint &ViewportSize, FRDGBufferSRVRef RectMinMaxBufferSRV, uint32 NumRects, FRHIBlendState *BlendState=nullptr, FRHIRasterizerState *RasterizerState=nullptr, FRHIDepthStencilState *DepthStencilState=nullptr, uint32 StencilRef=0) |
| Rect based pixel shader pass. | |
| template<typename TShaderClass > | |
| static void | DrawFullscreenPixelShader (FRHICommandList &RHICmdList, const FGlobalShaderMap *GlobalShaderMap, const TShaderRef< TShaderClass > &PixelShader, const typename TShaderClass::FParameters &Parameters, const FIntRect &Viewport, FRHIBlendState *BlendState=nullptr, FRHIRasterizerState *RasterizerState=nullptr, FRHIDepthStencilState *DepthStencilState=nullptr, uint32 StencilRef=0) |
| Dispatch a full screen pixel shader to rhi command list with its parameters. | |
| static void | DrawFullscreenQuad (FRHICommandList &RHICmdList, uint32 InstanceCount=1) |
| Draw a two triangle on the entire viewport. | |
| static void | DrawFullscreenTriangle (FRHICommandList &RHICmdList, uint32 InstanceCount=1) |
| Draw a single triangle on the entire viewport. | |
| static void | InitFullscreenPipelineState (FRHICommandList &RHICmdList, const FGlobalShaderMap *GlobalShaderMap, const TShaderRef< FShader > &PixelShader, FGraphicsPipelineStateInitializer &GraphicsPSOInit) |
| Initialize a pipeline state object initializer with almost all the basics required to do a full viewport pass. | |
All utils for pixel shaders.