Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/ShaderParameterUtils.h |
Include |
#include "ShaderParameterUtils.h" |
template<typename ShaderRHIParamRef, class ParameterType, typename TRHICmdList>
void SetShaderValueArray
(
TRHICmdList & RHICmdList,
const ShaderRHIParamRef & Shader,
const FShaderParameter & Parameter,
const ParameterType * Values,
uint32 NumElements,
uint32 BaseElementIndex
)
Sets the value of a shader parameter array. Template'd on shader type A template parameter specified the type of the parameter value.
Shader should be the param ref type, NOT the param type, since Shader is passed by value. Otherwise AddRef/ReleaseRef will be called many times.