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

Method GetHash

Source/Engine/Renderer/RenderList.cpp:1175–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173}
1174
1175void SurfaceDrawCallHandler::GetHash(const DrawCall& drawCall, uint32& batchKey)
1176{
1177 batchKey = (batchKey * 397) ^ ::GetHash(drawCall.Surface.Lightmap);
1178}
1179
1180bool SurfaceDrawCallHandler::CanBatch(const DrawCall& a, const DrawCall& b, DrawPass pass)
1181{

Callers 1

CalculateSortKeyFunction · 0.45

Calls 1

GetHashFunction · 0.70

Tested by

no test coverage detected