use XXHash3 instead of sha1-le in RenderPassManager

This commit is contained in:
hyzboy 2024-11-09 00:41:15 +08:00
parent e3dccd6b06
commit c9855d7dee
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
VK_NAMESPACE_BEGIN VK_NAMESPACE_BEGIN
using RenderPassHASHCode=util::HashCodeXXH3_128; using RenderPassHASHCode=util::HashCodeXXH3_128;
#define CreateRenderPassHash util::CreateXXH3_128Hash
class RenderPassManager:public GraphModule class RenderPassManager:public GraphModule
{ {

View File

@ -188,7 +188,7 @@ bool RenderPassManager::Init()
{ {
pipeline_cache=GetDeviceAttribute()->pipeline_cache; pipeline_cache=GetDeviceAttribute()->pipeline_cache;
hash=util::CreateSHA1LEHash(); hash=CreateRenderPassHash();
return(true); return(true);
} }
@ -252,7 +252,7 @@ namespace
void HashRenderPass(RenderPassHASHCode *code,const RenderbufferInfo *rbi,const uint8 subpass_count) void HashRenderPass(RenderPassHASHCode *code,const RenderbufferInfo *rbi,const uint8 subpass_count)
{ {
util::Hash *hash=util::CreateSHA1LEHash(); util::Hash *hash=CreateRenderPassHash();
hash->Init(); hash->Init();