MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / getSource

Method getSource

source/RenderGraph/Attachment.cpp:503–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 }
502
503 Attachment const * Attachment::getSource( uint32_t index )const
504 {
505 if ( index > 0 && index >= source.size() )
506 CRG_Exception( "Invalid index" );
507
508 if ( source.empty() )
509 return this;
510
511 return source[index].attach.get();
512 }
513
514 void Attachment::initSources()
515 {

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

sizeMethod · 0.80
getMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64