MCPcopy Create free account
hub / github.com/carbonengine/trinity / ComputeHash

Method ComputeHash

trinityal/src/Tr2ResourceSetAL.cpp:457–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457uint32_t Tr2ResourceSetDescriptionAL::ComputeHash() const
458{
459 uint32_t hash = 0;
460 for( uint32_t i = 0; i < m_registerMap.srvCount; ++i )
461 {
462 m_srv[i].UpdateHash( hash );
463 }
464 for( uint32_t i = 0; i < m_registerMap.uavCount; ++i )
465 {
466 m_uav[i].UpdateHash( hash );
467 }
468 for( uint32_t i = 0; i < m_registerMap.samplerCount; ++i )
469 {
470 m_samplers[i].UpdateHash( hash );
471 }
472 return hash;
473}
474
475
476Tr2ResourceSetDescriptionAL::Resource::Resource() :

Callers 1

Calls 1

UpdateHashMethod · 0.45

Tested by

no test coverage detected