SetShaderValueArray

Sets the value of a shader parameter array.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderParameterUtils.h"

Syntax

template<typename ShaderRHIParamRef, class ParameterType, typename TRHICmdList>
void SetShaderValueArray
(
    TRHICmdList & RHICmdList,
    const ShaderRHIParamRef & Shader,
    const FShaderParameter & Parameter,
    const ParameterType * Values,
    uint32 NumElements,
    uint32 BaseElementIndex
)

Remarks

Sets the value of a shader parameter array. Template'd on shader type A template parameter specified the type of the parameter value. NOTE: 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.

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