engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 静态 Public 属性 | 所有成员列表
FComputeShaderUtils结构体 参考

All utils for compute shaders. 更多...

#include <RenderGraphUtils.h>

静态 Public 成员函数

template<typename TShaderClass >
static void AddPass (FRDGBuilder &GraphBuilder, FRDGEventName &&PassName, ERDGPassFlags PassFlags, const TShaderRef< TShaderClass > &ComputeShader, typename TShaderClass::FParameters *Parameters, FIntVector GroupCount)
 Dispatch a compute shader to render graph builder with its parameters.
 
template<typename TShaderClass >
static void AddPass (FRDGBuilder &GraphBuilder, FRDGEventName &&PassName, ERDGPassFlags PassFlags, const TShaderRef< TShaderClass > &ComputeShader, typename TShaderClass::FParameters *Parameters, FRDGBufferRef IndirectArgsBuffer, uint32 IndirectArgsOffset)
 Dispatch a compute shader to render graph builder with its parameters.
 
template<typename TShaderClass >
static void Dispatch (FRHIComputeCommandList &RHICmdList, const TShaderRef< TShaderClass > &ComputeShader, const typename TShaderClass::FParameters &Parameters, FIntVector GroupCount)
 Dispatch a compute shader to rhi command list with its parameters.
 
template<typename TShaderClass >
static FORCEINLINE_DEBUGGABLE void DispatchIndirect (FRHIComputeCommandList &RHICmdList, const TShaderClass *ComputeShader, const typename TShaderClass::FParameters &Parameters, FRDGBufferRef IndirectArgsBuffer, uint32 IndirectArgOffset)
 Dispatch a compute shader to rhi command list with its parameters and indirect args.
 
template<typename TShaderClass >
static void DispatchIndirect (FRHIComputeCommandList &RHICmdList, const TShaderRef< TShaderClass > &ComputeShader, const typename TShaderClass::FParameters &Parameters, FRHIVertexBuffer *IndirectArgsBuffer, uint32 IndirectArgOffset)
 Indirect dispatch a compute shader to rhi command list with its parameters.
 
static FIntVector GetGroupCount (const int32 ThreadCount, const int32 GroupSize)
 Compute the number of group to dispatch.
 

静态 Public 属性

static constexpr int32 kGolden2DGroupSize = 8
 Ideal size of group size 8x8 to occupy at least an entire wave on GCN, two warp on Nvidia.
 

详细描述

All utils for compute shaders.


该结构体的文档由以下文件生成: