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

Function makeHash

source/RenderGraph/ResourceHandler.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 static size_t makeHash( SamplerDesc const & samplerDesc )
68 {
69 auto result = std::hash< FilterMode >{}( samplerDesc.magFilter );
70 result = hashCombine( result, samplerDesc.minFilter );
71 result = hashCombine( result, samplerDesc.mipmapMode );
72 result = hashCombine( result, samplerDesc.addressModeU );
73 result = hashCombine( result, samplerDesc.addressModeV );
74 result = hashCombine( result, samplerDesc.addressModeW );
75 result = hashCombine( result, samplerDesc.mipLodBias );
76 result = hashCombine( result, samplerDesc.minLod );
77 result = hashCombine( result, samplerDesc.maxLod );
78 return result;
79 }
80
81 static size_t makeHash( bool texCoords
82 , Texcoord const & config )

Callers 2

createSamplerMethod · 0.70

Calls 1

hashCombineFunction · 0.85

Tested by

no test coverage detected