MCPcopy Create free account
hub / github.com/blender/cycles / float3_array_hash

Function float3_array_hash

src/graph/node.cpp:597–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void float3_array_hash(const Node *node, const SocketType &socket, MD5Hash &md5)
598{
599 /* Don't compare 4th element used for padding. */
600 const array<float3> &a = *(const array<float3> *)(((char *)node) + socket.struct_offset);
601 for (size_t i = 0; i < a.size(); i++) {
602 md5.append((uint8_t *)&a[i], sizeof(float) * 3);
603 }
604}
605
606} // namespace
607

Callers 1

hashMethod · 0.85

Calls 2

appendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected