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

Function makeHash

source/RenderGraph/FrameGraph.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 static size_t makeHash( AttachmentArray const & attachments
99 , bool mergeMipLevels
100 , bool mergeArrayLayers )
101 {
102 auto result = std::hash< bool >{}( mergeMipLevels );
103 result = hashCombine( result, mergeArrayLayers );
104 for ( auto attach : attachments )
105 result = hashCombine( result, attach );
106 return result;
107 }
108
109 static AttachmentPtr mergeAttachments( FrameGraph & graph
110 , AttachmentArray const & attachments

Callers 1

mergeAttachmentsMethod · 0.70

Calls 1

hashCombineFunction · 0.85

Tested by

no test coverage detected