BuildResourceTableMapping

This function looks for resources specified in ResourceTableMap in the parameter map, adds them to the resource table, and removes them from the parameter map.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h

Include

#include "ShaderCompilerCommon.h"

Source

/Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp

Syntax

bool BuildResourceTableMapping
(
    const TMap< FString, FResourceTableEntry > & ResourceTableMap,
    const TMap< FString, uint32 > & ResourceTableLayoutHashes,
    TBitArray<> & UsedUniformBufferSlots,
    FShaderParameterMap & ParameterMap,
    FShaderCompilerResourceTable & OutSRT
)

Remarks

This function looks for resources specified in ResourceTableMap in the parameter map, adds them to the resource table, and removes them from the parameter map. If a resource is used from a currently unmapped uniform buffer we allocate a slot for it from UsedUniformBufferSlots. Returns false if there's any internal error.

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