MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getHashValue

Method getHashValue

Engine/source/gfx/gfxStateBlock.cpp:100–103  ·  view source on GitHub ↗

This method just needs to return a unique value based on its contents.

Source from the content-addressed store, hash-verified

98
99// This method just needs to return a unique value based on its contents.
100U32 GFXStateBlockDesc::getHashValue() const
101{
102 return CRC::calculateCRC(this, sizeof(GFXStateBlockDesc));
103}
104
105/// Adds data from desc to this description, uses *defined parameters in desc to figure out
106/// what blocks of state to actually copy from desc.

Callers 2

createStateBlockMethod · 0.45
describeSelfMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected