MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / HashPermutation

Function HashPermutation

Source/Engine/Graphics/Shaders/GPUShader.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "Engine/Profiler/ProfilerMemory.h"
12
13static FORCE_INLINE uint32 HashPermutation(const StringAnsiView& name, int32 permutationIndex)
14{
15 return GetHash(name) * 37 + permutationIndex;
16}
17
18void GPUShaderProgram::Init(const GPUShaderProgramInitializer& initializer)
19{

Callers 3

CreateMethod · 0.85
HasShaderMethod · 0.85
GetShaderMethod · 0.85

Calls 1

GetHashFunction · 0.70

Tested by

no test coverage detected