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

Method UpdateHash

trinityal/src/Tr2ResourceSetAL.cpp:502–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void Tr2ResourceSetDescriptionAL::Resource::UpdateHash( uint32_t& hash ) const
503{
504 if( type == BUFFER )
505 {
506 HashResourcePtr( buffer, hash );
507 }
508 else if( type == TEXTURE )
509 {
510 HashResourcePtr( texture, hash );
511 }
512 else if( type == HEAP_VIEW )
513 {
514 hash = CcpHashFNV1( &type, sizeof( type ), hash );
515 }
516}
517
518Tr2ResourceSetDescriptionAL::Sampler::Sampler() :
519 type( NONE )

Callers 1

ComputeHashMethod · 0.45

Calls 1

HashResourcePtrFunction · 0.85

Tested by

no test coverage detected